Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Benoit Grange
Fri, 02 Oct 1992 09:10
Re: Developer Support "core dump": NXImage question
Author: Benoit Grange
Date: Fri, 02 Oct 1992 09:10
Date: Fri, 02 Oct 1992 09:10
21 lines
1290 bytes
1290 bytes
I had some similar problem where an NXImage was allocated in a particular zone and the the zone was destroyed (long long later). The image was NOT NAMED any way, and not referenced explicitly in my application. Then, in some random part of the program (often when quitting) the program would crash with a Bus Error. I had to investigate long (yes I should have RTFM) to find that 1) Always void all references to an NXImage before freeing, appkit objects have a long memory of what image they used, be sure you REALLY tell them not to use that image. 2) Always explicitly free a NXImage which is in a Zone you might destroy. 3) And then you are allowed to gracefully destroy the zone. PS: I am REALLY HAPPY to see some NeXT dev support people posting some REALLY interesting articles. Please continue, this may help all of us. -- ---- Benoit Grange - PARIS - FRANCE Mail to : ben@fizz.fdn.org (SMALL NeXTMails accepted, < 10kb)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads