Shay,

At 07:36 PM 3/15/00 +0200, you wrote:
>1. i used : SysSetTrapAddress (sysTrapSysTaskDelay,MyTrapFunc);
>can i pass any parameter to the function ?

No.  The function is called exactly as the original would be.

>2. in the trap function i need to call :
>  SysSetTrapAddress (sysTrapSysTaskDelay,(OldTrapAddr));
>BUT - the OldTrapAddr is a global variable,
>and in shared library i can't use globals.
>so i thought to use the method explained in articles
>about the handle that holds the struct of globals,
>but for that i need to pass a variable of the "RefNum" of the library
>loaded,
>that is question #1.

I would use a feature for this.

>by the way - no one answered a previous question of mine
>about "specific trap", please take a look.

I didn't see that.  Could you remail it to me off list?

Greg


Greg Winton
Bachmann Software and Services, LLC
http://www.bachmannsoftware.com
Home of Bachmann Print Manager, the only graphical printing solution for
the PalmOS

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to