Well, that should make you happy! Just click on the Debug button in the error message dialog, and see what's making the invalid access.
BTW, could it be that the error is occurring just after the code you posted? You don't initialize hDb if the attempt to find the database fails, and so you may be dealing with a garbage DmOpenRef. -- Keith At 5:44 PM -0800 3/7/02, DL wrote: >A new error started occuring, using the exact same code: > >"Program just read from memory location 0xFEFBFFF8 causing a bus error." > >Even tried a different POSE ROM image. No luck. > > > >"DL" <[EMAIL PROTECTED]> wrote in message news:79129@palm-dev-forum... >> >> The following code fails with a fatal exception: "MemoryMgr.c, Line 4384, >> Free handle" >> > > DmOpenRef hDb; >> UInt16 dbId = DmFindDatabase(0, "CodesGeneric"); >> if (dbId != 0) >> hDb = DmOpenDatabase(0, dbId, dmModeReadOnly); >> >> The database CodesGeneric does indeed exist and the dbId is not zero. >> > > This is seeming straight forward, but doesn't seem to work. Any ideas? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
