Maybe you're in the wrong form. That's why breaking it apart and stepping
through the code would be a good idea.
Regards,
Steve
-----Original Message-----
From: Nicholas Breau [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 7:36 AM
To: Palm Developer Forum
Subject: Re: Seriously weird problem, how could this be wrong ?
But their are no variable; tableP gets declared in the statement and frm is
the current active form ? I got to this line through the debugger, and the
error message displayed is invalid parameter ? PlotsTreeTable is the name of
the table, give by the constructor.
Nick
Roger Chaplin wrote in message <8133@palm-dev-forum>...
"Nicholas Breau" <[EMAIL PROTECTED]> wrote:
> My application crashes on the following line of code, but this function is
> very simple, can anybody tell me what is going on ???
>
> Nick.
>
> TablePtr tableP = (TablePtr)FrmGetObjectPtr(frm, FrmGetObjectIndex(frm,
> PlotsTreeTable));
This is what debuggers are for :-)
Seriously, there is not enough here to go on. The code looks right, but
we surely don't know what values those variables have. Whenever I have
a problem like this, I rewrite the code so that there is only one OS
call per statement, then step through the code with the debugger so I
can see exactly what is going on.
--
Roger Chaplin
<[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html