Segmentation error at the end problem
    Charles Hixson 
    charleshixsn at earthlink.net
       
    Tue Jan 27 22:48:33 PST 2009
    
    
  
Main routine:
void	main()
{
    try
    {  BlockFile	bf;
       bf  =  new BlockFile ("test.bf", 4096);
       writefln ("before close");
       bf.close;
       bf  =  null;
       writefln ("after close");
       BlockFile	cf  =  new  BlockFile ("test.bf", 4096);
       writefln ("after second open");
    }
    catch (Exception e)
    {  writefln ("Caught Exception ", e);  }
}
Results in:
Exiting BlockFile::this
before close
after close
Exiting BlockFile::this
after second open
Segmentation fault
I could post all the code.  It's only 146 lines.  But perhaps this is 
enough?
    
    
More information about the Digitalmars-d-learn
mailing list