i think the idea is that an app shouldn't have any cleanup work it needs to do. imagine how badly it would suck if an app had some cleanup code that tried to execute during deletion of the app, and that code crashed! it would be almost impossible for your average user to delete the app, then! (yes there are tools you can use to forcibly delete it, but the huge majority of users wouldn't know about them, or would be scared to use them, or would not know how to use them). ----- Original Message ----- From: Jean-Paul Gavini <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 18, 1999 6:30 AM Subject: How to execute "Cleanup" code when an app is about to be deleted? > Hi everybody, > > Is there a way for an application to be aware it is about to be deleted, and > make it execute some custom cleanup code just before deletion? > > I was thinking about trapping a system call, but didn't find a > "SysAppDelete" to trap. I suppose i can trap DmDeleteDatabase, check that > it's my app that is being deleted, but i'm not sure on what will happen when > i will call the regular DMDeleteDatabase from a code just about to be > deleted! > > Perhaps is there a special launch code sent to apps just before deletion? > > Any help will be greatly appreciated! > > Thanks > jp > > > >
