At 07:22 PM 8/3/2004, you wrote:
Are there restrictions on using different code sections with callbacks? If so, what are the details? I have streaming sound code that works if I leave the streaming sound routines in the default section, but crashes with a bad read if I move it somewhere else.

If you use callbacks, you need to make sure that the code resources that the callbacks are in are locked in memory, and that the database that holds them is protected while the code resources are in use.


Also, often in callback situations, global variables aren't available -- this includes the intrasegment jump tables that allow code in one resource to call code in another resource.


-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/



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

Reply via email to