Click to See Complete Forum and Search --> : MemoryMgr.c, Line:4415


Stu
08-26-2004, 03:31 PM
Hi all

I have an m515 that is about to receive a serious beating :-) While I was away my palm battery went so dead that when I finally got it up and running again there was nothing on it but the basics it came with. After hot syncing all my software back onto it, whenever I turn it off or it automatically shuts down, restarting causes a "Fatal Alert: MemoryMgr.c, Line:4415, Invalid handle" message.

Does anyone have any ideas on what this actually means, or better yet how I might be able to rectify it? Each time the message comes up I have to completely reset the whole thing...

Thanks!!

JohnKes
08-26-2004, 07:01 PM
Sounds like a corrupted file somewhere. Here's my technique for finding a corrupted file:
1) Hard Reset. Check if ok.
2) Move all files from the Backup directory on the PC to another directory, e.g. Backup2
3) HotSync. Your Datebook and AddressBook data will be back. Check if ok. If not, use dbScan to clean up: http://www.freewarepalm.com/utilities/dbscan.shtml Check if ok.
4) Move a few files from Backup2 to Backup, then HotSync. Check if ok.
5) Repeat (4) until problems re-appear. Then you will know approx. which files are bad. Delete them from the unit.

Syno
08-26-2004, 10:13 PM
I had a similar problem. My message read:

MemoryMgr.c, Line:3061, Chunk over-locked

I was able to speak with two very good developers about this and here is what they had to say:

From one developer:
The error message/line number info is actually from the OS - so it only gives a vague hint at the problem; which seems to be the app. locking a piece of memory too many times. Eg. to read a record from a database you have to lock it first, but when you are done you need to unlock it. You get 15 goes at locking without unlocking before the OS says "whoa there boy - methinks you have a problem!"... Food for thought, nonetheless...

From a different developer:
Unfortunately, in this case, I think there may be an actual bug in one of the applications. Stack overflows tend to be more
mysterious (random error messages) or spectacular (hard reset).
My best guess as to what might be happening is this: Under PalmOS, you must lock a movable chunk of memory before using it and mark it as movable again afterwards. If a program forgets to unlock the chunk, it gets recursively locked. PalmOS only supports 16 recursive locks maximum, and you get this error after exceeding this limit. Hackmaster has this bug
too. If you have hacks active, you get this error every 16th time you enter Hackmaster, and even after 7 years, they've never released an update to fix this.




All of this was very interesting but didn't help me much. Hope it might help you?

- Syno

Stu
08-27-2004, 09:17 AM
Hi John

I saw an older post from 2002 with the same instructions (may have been you back then too - didn't check the name). I emptied out my backup folder and hotsynced, but still have the same problem. Should the subsequent sync have removed everything from my pilot except the basic address/datebook?

Hang on! Just thought of something - what is the difference between a hard reset and a soft reset. I've been assuming that a hard reset was that little hole in the back, but now that I think about it removing the battery would be "harder" - is this the case?

Syno
08-27-2004, 09:22 AM
HARD RESET ...........

Hold power button down.

Pin in back (keep holding power button).

Release power button.

Look at screen .....................arrow up to erase all data.

WARNING: it will erase ALL DATA !!!

- Syno

Stu
08-27-2004, 09:30 AM
Hi Syno

Is this supposed to delete all my software, because all it seems to be doing is resetting; nothing is changed is terms of what was on the palm before and after the reset. You mention arrowing up to "erase all data" - I'm not getting anything on my screen when I do this.

Let me double-check:
1) Power button down, and held
2) Pin in the back
3) Release power button then pin, or pin then power button? I tried both and found no difference...

Syno
08-27-2004, 09:33 AM
Let's see .............

This is from Anders post:



apersson850
Senior Member

The correct procedure for a hard reset is this:

Hold reset pin.
Hold power key.
Release reset pin.
Wait for the Palm logo to appear.
Release the power key.
Press "Up" to confirm clearing of memory.

If it still doesn't work, well, then it's the dustbin, I guess...


__________________
Anders

Stu
08-27-2004, 09:36 AM
That worked like a charm - alright now let me see if I can fiddle around with the original instructions and get this behemoth to co-operate

Thanks!