I have a real obscure error. An employee was doing a HotSync operation.
During the HotSync, he got the famous error msg, "MemoryMgrNew.c, Line:4164,
Invalid handle". So now I have the device and I am trying to debug it. It
seems that DmOpenDatabase is blowing up.

With this code....

        LocalID lID = DmFindDatabase(0,szDBName);
        if(lID)
        {
                m_hDB = DmOpenDatabase(0,lID,dmModeReadWrite);
        }

I sucsessfully open one database and then try to open another but it is
blowing up in the bowls of the OS. When my application calls DmOpenDatabase,
it get "MemoryMgrNew.c, Line:4164, Invalid handle". 

This is what I see on the stack....

0x10C192A6( DmOpenDatabase )
0x10C19426( DmResetRecordStates )
0x10C14F5C( MemLocalIDToLockedPtr )
0x10C14B24( MemHandleLock )
0x10C15AB8( PrvHandleCheck )
0x10C15AB8( PrvHandleCheck )
0x10C1FAF0( ErrDisplayFileLineMsg )

I also tried to call MemLocalIDKind to figure out if the DB is somehow in
flash memory. It isn't. I ALSO have tried 2 other third party database
viewer type applications, they also blow up with the same error when they
try to access that specific database. So I am screwed. I think somehow the
database is hosed.... 

Anyone?


thanks
Ralph Krausse
Expo International, Inc.
110 Shawmut Road
Canton, MA 02021
telephone (781) 821-6653
www.expo-intl.com




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

Reply via email to