You may need to change the ownership of chunk to system?
Stefan Mohr wrote:
Hi guys,
I’m having a devil of a time with the app I’m working on. We’re using
third party applications to do WAV playback, recording, and JPG display.
I’ve got my own player controls set up which call the external apps –
the WAV player is becoming problematic here.
Essentially I define a struct with the parameters I need, and that is
passed to the app via a SysAppLaunch() call. The WAV file then starts
playing asynchronously.
When I want to stop, I send a different launch code to the same app to
stop.
Things work great in the sim! I’m having problems on the devices
themselves though. I’m testing with both a Tungsten T and a Zire 71
and I’m finding that interrupting the app is being problematic.
When I jump to the launcher or change my app state so that it move to
the next screen, I will quite often get an alert popup saying:
MemoryMgr.c,Line:3760,
Invalid chunk ptr
And then the device resets.
There’s really nothing in my code that doesn’t match the sample code
provided by the tool developer – and I can never reproduce this in his
sample app.
I’m starting to think it’s some delayed garbage collection in PalmOS
that the device is doing at the same time it’s try to run the player
with the “stop” launch code.
The fact that it’s working perfectly when I debug (and run normally in
the sim) is making this extremely frustrating to deal with.
Any ideas?
Thanks,
Stefan
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/