>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);
You never check to see if the DmNewRecord was successful. If it isn't,
you're probably passing NULL to DmWrite.
I would expect this to fail when data storage becomes full. If it fails
immediately, maybe you're doing something in your calculation of
"MostoftheStruc" which generates a huge number that can't be allocated.
Bill Goodman
Cyclos