At 07:30 PM 6/20/2005, you wrote:
Ben Combee wrote:
I wrote this code. The functions in MSL that were not implemented are
setup through macros so that at link time, you'd get this message.
atexit wasn't implemented. It could be done, but you'd have to write the
code yourself.
> -- Ben Combee, Senior Software Engineer, palmOne, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
Hi Ben,
thanks for your help,
how difficulty is to write this 'atexit' code by myself? any start up way
that you recommend?
Some already done code to copy from? for example I have a CW 8 for
Windows, it already has this code implemented there that a can covert to Palm?
There's atexit source included in the MSL with CW Palm OS 9 -- just open
the MSL source files and search for it. It's not too difficult, but you'll
have to figure out where in the runtime library code to check
1) do I have globals?
2) if I do, should I walk through the list of registered atexit handlers?
Look at the way other global-dependent code is handled in the runtime, like
the C++ exception handlers for globally constructed objects.
-- Ben Combee, Senior Software Engineer, palmOne, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/