Thanks, Ben. I re-read the part the is near the error and found this line *((UInt32*)(p + 1 + StrLen(pfilename))) = NetHToNL(filelength);
( p is a dynamic allocation char * ). Rewritting that line with MemMove solves the problem. Vu ----- Original Message ----- From: "Ben Combee" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 12:37 AM Subject: Re: I:\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c > At 11:39 PM 12/9/2003, Vu Pham wrote: > >In order to test a function, I put it in a loop to let it run every minute > >on the PalmOS5 Simulator. It runs for about 20 or 30 minutes then stops with > >the following error: > > > >I:\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c > >Line: 2258, Odd aligned write to 00F7BD75. > > This error is similar to the "bus error" on 68K devices. It means that > some code is trying to write a 16-bit or 32-bit value to a non-even > address. Can you run this on POSE with a debugger attached? That might > give you a better idea of what's happening. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
