Hi all,

I have been stuck with this problem for a while: my application has two
databases, one which can get quite large.
I have been experiencing crashes when accessing the database under certain
conditions, for example when I have up to 1000 records in there, but the app
seems completely fine when there are only a couple of hundred.

I have a database module with a global static DmOpenRef handle, which is
opened when the app is started. Mostly, accessing the database with this
handle is trouble free, but sometimes it seems to become corrupt, and any Dm
call will cause a Fatal Error. This is a reproducible error.

I can't understand why the number of records makes a difference. Indebug,
the address of the database reference is always fine, and never changes, and
the index I use is also fine, yet ' DmRecordInfo(dbr,index,NULL,NULL,NULL)'
will immediately cause a fatal error. I use DmGetLastError everywhere but
all db calls are fine prior to this. I check all database return codes -
fine.

My only clue is the CodeWarrior debug log:
Address error exception at 0x10c1deee (PrvRecordEntryPtr).

Does anyone have any suggestions? I'm out of ideas.

Thanks

Phil Hodge



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

Reply via email to