Hi All,

I'm writing a communications based static library, which will get compiled 
into a host application.

It's setup so that the caller of the library passes in a pointer to a 
callback function that they want to have invoked when serial data is 
available. Much like the 'SysNotifyRegister' function that can trigger a 
callback function.

All is working fine right now even when the application is not running, the 
function is still getting called when serial data exists. However, the docs 
warn that such callbacks must be locked to ensure the pointer remains 
valid..

How would I go about locking a pointer to a function passed into my static 
library that resides in the host application?
Can I lock the entire application resource so the system doesn't move it 
around?

Thanks in advance..

Jim
 



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to