Segmentation fault on closing file in destructor

Tom Kazimiers 2voodoo at gmx.de
Tue Sep 28 01:15:57 PDT 2010


Hi,

On 09/26/2010 10:05 PM, Simen kjaeraas wrote:
>>> 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?
> 
> http://digitalmars.com/d/2.0/statement.html#ScopeGuardStatement

thanks, strange I did not find that page by searching. Good to know
about that concept, but I guess it is not fitting as a solution here. My
scope is the from creation to destrution of the class, so this will no
be working. But anyway, thanks.

Tom


More information about the Digitalmars-d-learn mailing list