Hi all,

I think you may be having the same problem that I am. When I create a
database in the storage heap with 214 records and then exit the application
to the Palm OS 5 "shell," everything is okay. But when I create the exact
same database with 215 records in it, I get a "Invalid chunk ptr" message in
MemoryMgr.c at the same line you're seeing. This doesn't happen in pre-OS 5.
I have tried a million things to avoid this, but nothing seems to work. I
also was using MemMove to copy from the storage heap to the dynamic heap,
and this has always seemed to work fine. Replacing that with a byte-by-byte
copy-in-loop didn't fix anything.

It appears that OS 5 is doing some kind of checking that the previous OS's
didn't. What's really frustrating about this is that the crash happens
entirely after my application exits, and if I try to Debug from CodeWarrior,
the Tungsten T3 Simulator crashes completely.

Does this sound familiar?
- Jake

"Dhanashri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello All ,
> Please someone reply ..
> -Dhanashri /
>
> ----- Original Message -----
> From: "Dhanashri" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Thursday, November 13, 2003 9:34 PM
> Subject: Re: Memory Manager Error
>
>
> > Hi Anders ,
> > I removed all the MemMoves with my own MyMemCopy which is much more
safer
> .
> > But still it didn't solve the problem .
> > Please help ,
> > Regards ,
> > Dhanashri .
> >
> > ----- Original Message -----
> > From: "Dhanashri" <[EMAIL PROTECTED]>
> > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 13, 2003 8:49 PM
> > Subject: Re: Memory Manager Error
> >
> >
> > > Hi Anders ,
> > > Also 1 thing is we wanted to know .. the same code works on Palm OS
4.1
> on
> > > Samsung i500 device . But it won't work on OS 5.0 . Why this is so ?
> Does
> > OS
> > > 5.0 treat memory related things differently than OS 4.1 ?
> > > Regards ,
> > > Dhanashri /
> > >
> > > ----- Original Message -----
> > > From: "Dhanashri" <[EMAIL PROTECTED]>
> > > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > > Sent: Thursday, November 13, 2003 8:08 PM
> > > Subject: Re: Memory Manager Error
> > >
> > >
> > > > Hi Anders ,
> > > > Can I see the memory map in Codewarrior ? For example , in
Archimedes
> > > > compiler for 8051 , we can give an option to generate the linker map
> > files
> > > .
> > > > Is there a similar option in codewarrior ? And if yes , what is the
> file
> > > > type that is generated ?
> > > > Thanks & regards ,
> > > > Dhanashri .
> > > >
> > > > ----- Original Message -----
> > > > From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
> > > > Newsgroups: palm-dev-forum
> > > > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, November 13, 2003 7:57 PM
> > > > Subject: Re: Memory Manager Error
> > > >
> > > >
> > > > > I think that it checks if the address are valid and inside the
> > perimiter
> > > > of
> > > > > the dynamic heap.
> > > > > I'll hope you solve this problem. Good Luck !!!
> > > > >  \Anders R-N
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > 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/
> > > >
> > >
> > >
> > > --
> > > 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/
>
>



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

Reply via email to