> It is a button object. but I have recently commented out the code that gets the
>button object and now the program dies in the forms event loop.
>
>
> case frmOpenEvent:
>
>
>
> RecordFormInit();
> frmP = FrmGetActiveForm();
> FrmDrawForm ( frmP); <---------------- Dies right here..
> handled = true;
> break;
>
>
> So this little annoying problem has nothing to do with the control I think. This for
>just does not react kindly to be pointed at! I can't seem to get a valid pointer to
>it... ugh. day 3 and I still have no clue where to begin. I could completely recreate
>this form.. *but* it has a lot of work in it and I'd rather not.
>
>
Uh oh... it sounds more like a memory issue. Are you sure you haven't
used too much stack space somewhere (RecordFormInit() is a possible area
to check) or that you haven't allocated too much dynamic memory via
MemHandleNew() or MemPtrNew()...
Remember you've only got a few kb of stack. It sounds like something is
getting corrupted in memory.
--
John Schettino - http://members.tripod.com/schettino/
Palm OS Programming For Dummies (late July '99), CORBA For Dummies,
AppleScript Applications, and more.