What's the best way to refer to offsets within a
record? I have a struct which I want to write to
a storage record, sort of like this:

typedef struct
{
        Byte    next;
        etc....
} StandardDataElement, *StandardDataPtr;

To write it to a record, I used to make a StandardDataPtr  pointer,
and make it = 0. Then I used to do:


DmWrite(myRecPtr,(ULong) pointer->next,&data,1);

While this usually works on the device, it seems to crash the emulator.
I get a error about reading from low memory. If, instead, I use:


DmWrite(myRecPtr,0,&data,1);

it seems to work fine. So if we aren't allowed to use a zero pointer
to get the offsets, how else can one do this?

Thanks ,

Rick Bram


Reply via email to