If after your code was done with the record you didn't do a DmReleaseRecord,
your next attempt to get the record could fail, since the system thinks
you're not really done with it. If you're not modifying the record, use
DmQueryRecord instead, and this won't be an issue.
Mark Peters
in article 37638@palm-dev-forum, Richard.Johnstone at
[EMAIL PROTECTED] wrote on 1/30/01 12:47 PM:
>
> I am getting the error above when I call the code below for a second time.
>
> info = DmGetRecord( DriversLogDB, CurrentTrip);
>
> Basically, it restores the current info from the DB.
> It works fine the first time I enter the app.
> But if I leave the app and go back into it it gives me the error.
> It is passing in 0 as the CurrentTrip but if that was going to error,
> shouldn't it fall over the first time??
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/