OK, everything works fine ! In fact, I change j (UInt16) into UInt32 but there was the same problem... Looking more deeply my code, I found that my buffer area (array "message") was too small to contain my data. But by increasing my array, I got a "Stack overflow" message. So I create my array with a Malloc-like call and everything is Ok now... Hope there's no problem with it ! Yannick Bartheye.
"Yannick Bartheye" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > > Hello, > Can anybody helps me ? > > I use the follow code: > > Char *buffer; > UInt16 j: > MemHandle recordh; > /*--- */ > buffer = MemHandleLock(recordh); > StrCopy (message+j,buffer); > j+=MemHandleSize(recordh); <- Here is the failure (?) > MemHandleUnlock(recordh); > /* --- */ > > And with some data in my DB, I got this message > "MyProg (unknown version) reports "MemoryMgr.c, Line:4327, Non-Word-aligned > handle". If this the latest etc..." > > Using Gdb, the error seems occurs during --> j += MemHandleSize(recordH); > > How can I fix this problem ? > > Yannick Bartheye. > > > > > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
