As you've discovered you need to keep your db open. There is no problem keeping a db open (dmModeLeaveOpen) - but you need to keep hold of a reference to the open db so you can close it later as required (stuff it in a feature). There's a bit more to it, but that should get you going for the most part.
Cheers, Gavin. "Eric Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am working on an application that will add it's own custom buttons to the > command bar. I'm doing this through the sysNotifyMenuCmdBarOpenEvent so it > will add the buttons no matter what app is running. My problem is that I > can't come up with a way to make the resources of my custom images available > and yet not crash the palm. I have to do a DmOpenDatabase to make them > available in the first place. Then, I add them to the command bar. If I > DmCloseDatabase, the images don't load. If I don't close the database, I > either get a fatal exception or a chunk under locked error. How can I make > this work? > > -- > Eric Allen > Webmaster, Student, and Programmer > http://svallens.com/epall/ > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
