Yes I found the problem. The DbRef was being invaidated before it opened.
Thanks for pointing me in the right direction.
----- Original Message -----
From: Fitzpatrick, Joe <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Saturday, June 17, 2000 7:13 PM
Subject: RE: Application reads from low memory ....the dirty dog!!!
> Chances are you have a handle or pointer which is not remaining valid.
For
> example, how do you maintain your open database reference? If the DbRef
you
> pass to DmNewRecord is invalid, you'll get an error. Similarly, are you
> using global variables, etc. in your DmWrite call?
>
> I suspect that your problem is not in the snippet, but in some of the
"etc."
> stuff which is omitted.
>
> Good Luck,
> -jjf
>
> -----Original Message-----
> From: Lurenzel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 16, 2000 9:29 PM
> To: Palm Developer Forum
> Subject: Application reads from low memory ....the dirty dog!!!
>
>
> I have a simple database application. Here is some code.
>
> void newRecord()
> {
> UInt index = 0;
> Myhandle = DmNewRecord(etc, &index,etc);
> Mypointer = MemHandleLock(Myhandle);
>
> /../ get appropriate pointers to fields, and text, etc
> DmWrite(etc, etc,etc,etc);
> MemHandleUnlock(MyHandle)
> DmReleaseRecord(ect, etc, true);
> }
>
> the above executes OK on untill the application is shut down with a call
to
> the menu. On the next run at DmNewRecord, I get an error message
> "--application just read from low memory."
>
> Does anyone have a clue what is causing this problem and how to fix it?
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/