Re: NSTimer - crash when closing window
Re: NSTimer - crash when closing window
- Subject: Re: NSTimer - crash when closing window
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 11 Oct 2003 11:44:01 +0100
On Saturday, October 11, 2003, at 10:33 am, Jens Bauer wrote:
I assume that the timerTask method has been invoked *after* the window
was closed.
If I put the lines...
fprintf(stderr, "windowWillClose\n"); fflush(stderr);
fprintf(stderr, "dealloc\n"); fflush(stderr);
in both -dealloc and -windowWillClose, nothing is printed before the
crash!
-Which means, it seems that neither windowWillClose, nor dealloc gets
called before the crash.
-I've tried setting breakpoints in the 2 methods, but the debugger
doesn't stop there either.
Should I do my cleanup in some method other than -dealloc and
-windowWillClose then ??
I don't think that's the problem. I just tried to reproduce your
problem on my machine, in both Cocoa and Cocoa Document-based
applications, and my test program works just fine.
Perhaps you are corrupting some memory somewhere or something?
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.