Segmentation fault on closing file in destructor

Tom Kazimiers 2voodoo at gmx.de
Sun Sep 26 11:55:33 PDT 2010


Hi,

On 09/26/2010 07:13 PM, bearophile wrote:
> Tom Kazimiers:
> 
>> Do you have any suggestion how I should make
>> sure that the file gets closed on destruction?
> 
> Can you use scope(exit) or the std.stdio.File?

Well, I have no idea. You mentioning scope(exit) was actually the first
time I heard of it. Unfortunately I have not found any resource about
it. Do you have a link to point me in the right direction?

If I would use std.stdio.File, what would be different?

Thanks,
Tom


More information about the Digitalmars-d-learn mailing list