I got a report that a user couldn't open a PDB with my app with his m515.
Checking into it, it opens fine with most ROMs but when I tried to open it
with POSE running "platform41_m505_Dbg_enUS" I threw an exception with the
error
"DataMgr.c Line: 8638, Records left locked in closed unprotected DB."
The part that has me scratching my head is that it opens fine on other ROMs
including "palmos35-en-colordbg.rom" and "palmOS 40-en-color.rom"
The PDB is 98 records long with each record being ~1Kb. The exception is
thrown towards the end of the read at the 95th or 96th record (but varies).
The exception is consistently thrown from within the call to "new" at the
last line listed below.
0009876C: 4E4F trap #15
0009876E: A013 sysTrapMemPtrNew
00098770: 2648 movea.l a0,a3
00098772: 2008 move.l a0,d0
00098774: 584F addq.w #4,a7
00098776: 661A bne.s operator new(unsigned long)+0xfba
(0x98792); 0x00098792
00098778: 246DE322 movea.l -7390(a5),a2
0009877C: 204A movea.l a2,a0
0009877E: 4AA80008 tst.l 8(a0)
00098782: 6606 bne.s operator new(unsigned long)+0xfb2
(0x9878a); 0x0009878a
00098784: 4EBAFF30 jsr std::__throw_bad_alloc()+0xede (0x986b6);
0x000986b6
I've gone through my code and it doesn't look as though I'm really
overlocking my records or any of the other typical reasons for getting the
"Records left locked..." error. I'm running CW8.3 and POSE 3.5.
Thanks,
Rich
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/