Henk Jonas wrote:

Hi,

I have one question about the callback function set with AlmSetProcAlarm().
I've read here in one thread that I should lock the code resource to ensure the function is there when called from the OS. But also I should protect the app database. At the moment (it's a small freeware tool: lightsafer) I only protect the app database using DmDatabaseProtect(). This works fine as far as I can see. Question is now: Is it sufficient or is it unsafe?
If unsafe: What could possible happen to my callback function ptr? How can I prevent this? What is my code resource? IIRC, PRCExplorer always shows up 2 code resources.


Regards
Henk


No one knows the answer? Do I need to MemHandleLock the code resource, my database or whatever? Doesn't unlock the OS my handle after my app quits? Many questions, any answer?


--
-------------------------------------------------------------------------
  Henk Jonas
  Palm OS � certified developer

  [EMAIL PROTECTED]                                   www.metaviewsoft.de
-------------------------------------------------------------------------

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

Reply via email to