Not sure what you want... I mean what's to say? The DB is created/opened with the code
I used before, originally from the tutorials.
To wit:
VitalSignsDB = DmOpenDatabaseByTypeCreator(VitalSignsDBType, VitalSignsCreatorID,
mode);
if (! VitalSignsDB)
{ error = DmCreateDatabase(0, VitalSignsDBName, VitalSignsCreatorID,
VitalSignsDBType, false);
if (error)
return true;
VitalSignsDB = DmOpenDatabaseByTypeCreator(VitalSignsDBType, VitalSignsCreatorID,
mode);
error = DmOpenDatabaseInfo(VitalSignsDB, &dbID, NULL, NULL, &cardNo, NULL);
ErrFatalDisplayIf(error, "Could not get database info.");
...
}
RecSize is equal to 94 and the line that bombs is...
NewRecord = DmNewRecord(VitalSignsDB,0,RecSize);
I can zip you the whole thing if you'd like to recreate it, bu t I really wasn't
expecting anyone to debug it for me, just looking
for some ideas. If you think this might be a POSE issue, I'd be happy to zip it to you
off-forum
Randy
Pulse Data Systems
[EMAIL PROTECTED]
>Can you reduce this to a small, *complete* snippet that demonstrates the
>problem?
>
>-- Keith Rollin
>-- Palm OS Emulator engineer
"Randall Pulsifer" <[EMAIL PROTECTED]> on 03/20/99 09:32:11 AM
Please respond to [EMAIL PROTECTED]
To: "Palm Developers Forum List" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: DmNewRecord writes to Low mem?
The following snippet always generates a write to low memory error on the
DmNewRecord statement on POSE (b26) with debug 3.0 ROMs.
I've kept careful watch over the dmOpenRef (VitalSignsDB) and the RecSize
(=94) and they have not been corrupted. What type of
things should I be looking for??
.
.
.
RecSize = MostoftheStruc + NoteLength;
// Get a new record of the proper size
NewRecord = DmNewRecord(VitalSignsDB,0,RecSize);
FOTptr = MemHandleLock(NewRecord);
//write out the two parts
DmWrite (FOTptr,0,&WorkingFieldObs,MostoftheStruc);
.
.
. Thanks
Randy P
Pulse Data Systems