Hi, My application has 5 segments. I use AlmSetProcAlarm() when I get Sleep/Wakeup Notification. After installation, AlmSetProcAlarm() seems to work fine the first time. But subsequent call to AlmSetProcAlarm() does not work at all. This behavior is on Simulator. The application works perfectly on devices except for few users.
I am not locking any code resources while using AlmSetProcAlarm(), so this may be causing the problem I guess. Now, the problem is I don't know how & when to lock the Code Resource. I used PRCExplorer and found that my PRC has got 6 code resources. I think the procedure to be called from AlmSetProcAlarm() resides in code resource 1. I tried following... MemHandleLock(DmGetResource(sysResTAppCode, 1)); I executed above statement just after installation... But this did not make any difference... AlmSetProcAlarm still does not work. Please note that after installation, I protect my application using DmDatabaseProtect(). I don't know if the way I lock the code resource is correct or not and also when & where to write Code resource Lock/Unlock statements in my code. When I set AlmSetProcAlarm() then my application is not the actively running application. Your help is much appreciated... Regards, Mehul -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
