Well, if you are going to be using dbPtr in multiple places in your
code, you should do one of two things. Either set dbPtr to NULL
everytime you call DmCloseDatabase(dbPtr) as suggested before (perhaps
you missed that post as it arrived two minutes before you posted) or
open the database when your app starts and just leave it open for the
duration that your app is running, then close it on exit. That way, you
won't have to worry about finding the db every time you need it.

Jonathan King

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-449067-
> [EMAIL PROTECTED] On Behalf Of druid
> Sent: Monday, July 18, 2005 9:47 PM
> To: Palm Developer Forum
> Subject: Re: Crash if I click button twice
> 
> running debug gives me this now
> Hardware Exception #2 occured while the emulator
> was calling the Palm OS function "DmDatabaseInfo".
> 
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/



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

Reply via email to