I'm using a procedure alarm in my app but I don't know anything about locking the code resource...
I just call the AlmSetProcAlarm() function and pass it a pointer to a static callback function. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
