Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: cleaning up from exit Message-ID: <9003052005.AA24152@expo.lcs.mit.edu> Date: 5 Mar 90 20:05:15 GMT References: <9003022256.AA07109@moniz.bcm.tmc.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 27 > With regards to the the "cleaning up before exit" problem > recently discussed on xpert, I would like to propose the > following addition to the Xt Intrinsics: > XtAddCleanUpProc(routine, client_data) > XtRemoveCleanUpProc(routine, client_data) > These would add or remove a routine from a list of routines > to be called when the application exits. > To exit an application, the programmer would call: > XtExit(value) > which would call all of the clean up procedures and then > call exit(value). This is a good idea. I will bring this before the internal Xt Consortium working group for discussion. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213