Thanks for the quick response.  There was one point where I had a continue statement.  
I was under the impression that the
FrmCloseAllForms magically fixed any locked handles, etc.

Ed

Danny Epstein wrote:

> > I get this error, "Records left locked in closed unprotected database.
> > " in POSE with my app.
>
> This indicates that you closed a database without unlocking all the record
> or resources that you locked. Note that it can be resources or records,
> despite the error message.
>
> > error = DmCloseDatabase(gSRCatDB);
> > if (gSRWorkDB != 0) // <--- This is the line that the error is generated
> on
>
> The debugger is probably pointing at the previous or next line. Look at the
> next stack frame; I'll bet it's DmCloseDatabase. Given the error message, it
> must be. :)
>
> Look for MemHandleLock calls without corresponding unlock calls. Remember to
> check for statements that can skip over the unlock call; e.g., break,
> continue, return, and goto.
> --
> Danny @ PalmSource
>
> --
> 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