🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1719

Re: Developer Support "core dump": NXImage question

#1719
From: Benoit Grange
Date: Fri, 02 Oct 1992 09:10
21 lines
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)
Technical Details
Message-ID: <1992Oct2.091031.1061@fizz.fdn.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!arakis.fdn.org!gamb.fdn.org!fizz!ben

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!arakis.fdn.org!gamb.fdn.org!fizz!ben
From: ben@fizz.fdn.org (Benoit Grange)
Subject: Re: Developer Support "core dump":  NXImage question
Message-ID: <1992Oct2.091031.1061@fizz.fdn.org>
Sender: ben@fizz.fdn.org
Date: Fri, 2 Oct 1992 09:10:31 GMT
Lines: 21