I'm working on an app that makes use of alarms. The code that executes
on the alarmtriggered and alarmdisplay launch codes will need to update
one or more database records.
I'm concerned about the situation where the app is running when an
alarm occurs. The app will have the database open for read/write, and
may have done a DmGetRecord on a record that the alarm handler code
wants to modify. This shouldn't be a problem, since DmGetRecord is
documented as returning NULL if the record is already busy, and in that
case I could just feed an event into the event queue that would
instruct the app to modify the record. However, that is not what
actually happens; instead a fatal error occurs if I try to get a record
that's already busy!
Certainly someone else has already addressed this situation. Any ideas
anyone?
--
Roger Chaplin
<[EMAIL PROTECTED]>