Chris,

I totally agree with you about the dangers of doing that.
To give you a better idea on the "Why" of my question, i just wondered how
some applications which obviously trap system traps AND don't rely on
HackMaster or EVplugbase manage to restore the default trap when they are
deleted. Let's take this as a school study of the case.

Any answer still welcome!

Thanks
JP


----- Message d'origine -----
De : Chris Antos <[EMAIL PROTECTED]>
� : <[EMAIL PROTECTED]>
Envoy� : vendredi 18 juin 1999 22:44
Objet : Re: How to execute "Cleanup" code when an app is about to be
deleted?


> 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
> >
> >
> >
> >
>

Reply via email to