Can someone from PalmSource elaborate on this problem? This is a major
issue
for a lot of people like me who are developing an interface to
(asynchronous) Serial
devices!
There is a Knowledge Base FAQ entry ("Answer ID 413") that states the
following:
a.. SysNotifyBroadcastFromInterrupt is non existent through PACE in Palm
OS 5. Developers should check the OS version before they attempt to make
this call.
b.. Serial Wakeup Handlers set with SrmSetWakeupHandler may work
inconsistently under different versions of OS 5 and will not work at all via
the Palm OS 5 Simulator. In general, developers should avoid using serial
wakeup handlers in OS 5.
**If you do attempt to use wakeup handlers in an OS 5.0 environment note
that they will only work while the application that set the wakeup handler
is still active. This is fixed in OS 5.2, but the wakeup handler itself
should be stored in a memory location separate from the application (such as
copying the function into a FtrPtr and setting the wakeup handler to this
FtrPtr).
Well, I can live with having my Wakeup Handler go away when my app exits,
and I re-install it every time
on startup. By "setting the wakeup handler to this FtrPtr", I assume it
means pass the the memory
address obtained from the FtrPtrNew() call as the WakeupHandlerProcPtr
argument to
SrmSetWakeupHandler(). Do I need to do this if I only need the wakeup
handler active while my app
is running?
There is no call to "clear" a wakeup handler that I know of. Does/can my
app do anything to clean up
the wakeup handler when it exits?
I am just starting the work of converting my app to OS 5. If I need to get
rid of wakeup handlers, I would
very much appreciate knowing that now, as well as getting a good explanation
why. I can see how the
PACE environment could have issues with interrupt-based code; but please let
us know exactly where
all of this stuff stands.
Thank you,
Bill Heidler
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/