The call to void * MemLocalIDToGlobal(LocalID local, UInt16 cardNo) has invalid cardNo.
This value is passed from DmOpenDBNoOverlay <- DmOpenDBNoOverlay <- DmOpenDatabase. Looks like an invalid handle. Any advice is difficult. Maybe traversing list of opened DBs just before app exit and doing some checks? > BTW: Simulator simply breaks on it :-( You at least have a test case. Emulator gives you the possibility to view/investigate list of databases. With best regards, Jan Slodicka Resco, Palm Division ----- Original Message ----- From: Christopher Stamper To: Palm Developer Forum Sent: Monday, January 28, 2008 8:56 PM Subject: Re: Re: Invalid card # error in Emulator I don't know if you're not actually setting cardno. Are you calling somewhow a db that doesn't exist? (Wrong CreatorID, type, etc) Tried on a real device? Hopefully someone else knows, cause I don't... :-) On Jan 28, 2008 2:50 PM, Jürgen Wind <[EMAIL PROTECTED]> wrote: Hi Chjristopher, thanks for your answer. I'm not setting the card # explicitly. Could it be that the system tries to free a DB that I have already freed? The callstack is not inside my program. Best wishes, Juergen ----- original message -------- Subject: Re: Invalid card # error in Emulator Sent: Mon, 28 Jan 2008 From: Christopher Stamper You're probably using a card number other than 0(1?) in one of your function calls. CardNo does not refer to external VFS volumes, such as SD cards. It is only for internal 'cards'. On Jan 26, 2008 6:52 PM, Juergen Wind <[EMAIL PROTECTED]> wrote: Hi all, a (hopefully) small question: When I quit my application, Emulator stops with the following message: 'Application called SysFatalAlert with the message "MemoryMgr.c, Line: 3188, Invalid card#"' The callstack is as follows: Thread [1] (Suspended) 5 ErrDisplayFileLineMsg() 4 MemLocalIDToGlobal() 3 DmOpenDBNoOverlay() 2 DmOpenDBWithLocale() 1 DmOpenDatabase() BTW: Simulator simply breaks on it :-( Any ideas? Juergen -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- Christopher Stamper [EMAIL PROTECTED] http://tinyurl.com/2ooncg-- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ --- original message end ---- -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- Christopher Stamper [EMAIL PROTECTED] http://tinyurl.com/2ooncg -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/