You could try using variables to have each step separated from the next one ?

FormPtr frm = FrmGetActiveForm();  // I guess...
Word index = FrmGetObjectIndex(frm, PlotsTreeTable);
TablePtr tableP = (TablePtr)FrmGetObjectPtr(frm, index);

Then single step to check frm, index, then tableP...

-- Denis.

At 08:36 13/04/00 -0300, you wrote:
>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

Reply via email to