I had the same problem some time ago. After struggling for a week I
realized the error has got nothing to do with MemoryMgrNew.c. I was writing
out of an array bounds [ just one byte! ]. Some thing like this:
<code>
char *str="ABCD";
char newStr[4];
StrCopy(newStr,str); // Writes 0 to newStr[4]
</code>
The error magically disappeared as soon as I fixed it! So, I would look for
memory leaks in your application.
cheers,
Sailesh.
> -----Original Message-----
> From: Stuart Norton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 14, 1999 3:39 AM
> To: Palm Developers Forum List (E-mail)
> Subject: MemoryMgrNew Crash
>
>
> Hi,
>
> I'm fairly new to all this, and am getting a crash on hitting
> the 'Apps'
> button (just an appStopEvent on the queue) which looks like this:
>
> Fatal Error:
> MemoryMgrNew.c
> Line:3970, Invalid handle
>
> It then fails to reset from the button in the box.
>
> Can anyone tell me what's likely to be causing this. (I'm
> using MemPtrNew
> commands, but with MemPtrFree at the ends of the functions
> where they are
> used - relevant?).
>
> Stuart Norton
>
>