Maybe another form is trying to process the same event,
try the following....
case (frmOpenEvent):
if(event->data.frmOpen.formID == RecordForm)
{
RecordFormInit();
frmP = FrmGetFormPtr(RecordForm);
FrmDrawForm(frmP);
handled = true;
}
break;
Hope that helps,
Jimmy
> 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.
>
> Thanks again,
>
> Philip J.