home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!usenet.cis.pitt.edu!andre
- From: andre@flash.cs.pitt.edu (Andre "A Mac Plumber" Srinivasan)
- Newsgroups: comp.sys.mac.programmer
- Subject: q: quit w/o resetting gworld mungs desktop
- Message-ID: <ANDRE.92Jul28154050@flash.cs.pitt.edu>
- Date: 28 Jul 92 19:40:50 GMT
- Sender: news+@pitt.edu
- Distribution: na
- Organization: Acme Plumbing Services And Exploding Cigars
- Lines: 43
-
-
- if you run the following program in tc (and i assume in mpw), the
- window that is drawn is not cleaned up and the desktop retains the
- window's image in video memory.
-
- should i be concerned that the toolbox is not cleaning up after me in
- this particular situation (will i eventually crash if i don't reboot)?
-
- if i plan on debugging code where this could happen (by quitting out
- of the debugger before resetting the gworld), should i look into
- patching exittoshell to reset the gworld?
-
- are there other situations that i should be aware of where
- the toolbox won't cleanup after me?
-
- thanks.
-
- -andre.
-
- /*------------------------*/
-
- void main(void)
- {
- GWorldPtr gwp;
- Rect r;
- WindowPtr wp;
-
- uinittoolbox(0);
-
- ugetboundsrect(&r);
-
- wp = NewWindow(NULL, &r, "\p", TRUE, documentProc, FOREGROUND, TRUE, 0);
- NewGWorld(&gwp, 0, &r, NULL, NULL, 0);
- SetGWorld(gwp, NULL);
-
- uexittoolbox();
- }
-
- --
- Andre Srinivasan :
- 734 LRDC : "Well scratch my back with a hacksaw."
- U. of Pittsburgh : - Mike Lange
- andre@cs.pitt.edu :
-