I suspect the code example is greatly simplified and I can't see
precisely what your code is doing, so I have to ask - are you certain
the allocated size (sounddata.dumpsize) is at least as large as the
aggregate of the sound resources, and that 'at' gets updated
appropriately, and that 'at' is used correctly to index into the
allocated memory?
On 7/12/07, Tam Hanna <[EMAIL PROTECTED]> wrote:
Hello,
I am currently creating basic background music code that copies the 230k
music file into RAM as a block from four resources...or rather it should do
so.
Essentially, I have this code:
sounddata.sounddump=MemGluePtrNew(sounddata.dumpsize);
//Write to buffer
at=0;
me=MemHandleLock(r0);
MemMove(sounddata.sounddump,me,MemHandleSize(r0));
FrmAlert(AltError);
at += MemHandleSize(r0);
However, the MemMove call dies with an error message about an invalid
pointer on the Palm OS Simulator. A Palm TX crashes without comment.
For me, it looks like MemGluePtrNew is broken-anyone of you knows what's up
here?
Best regards
Tam Hanna
http://tamspalm.tamoggemon.com
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
--
[Jeff Loucks]
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/