Eric Siu wrote:
> 
> >    Since this is being called when your program is not active,
> > you have no access to your globals oldKeyboardPtr and
> > oldDmDeletePtr.  (I'm assuming they're globals since I didn't
> > see how you declared them in the source that you posted.)
> > You'll need to store them in a different way (like using the
> > feature manager with FtrSet/Get) to have access to them when
> > your patched sysTrap is called.
> 
> I have decleard the odlKeyboardPtr and oldDmDeletePtr, the function can
> access it. any other possiblity ?

   It doesn't really matter that you have declared oldKeyboardPtr
and oldDmDeletePtr, if your app was not started with
sysAppLaunchCmdNormalLaunch (and it won't be if another app is
deleting your database) then you DO NOT have acess to those
values unless you retrieve them another way (e.g., the Feature
Manager).  Look in the docs under "Application Launch Codes",
p.47.

Regards,
Daniel.

Reply via email to