Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I am creating 2 forms and pushing them on the root form. When I try to pop one form, I get an error.

soft key event code,

case AVK_SOFT2:
IROOTFORM_PopForm(me->piRootForm);
IROOTFORM_PushForm( me->piRootForm, me->piForm2;
return TRUE;

Createform2 method creates piForm2 and pushes it to the irootform.
Createform1 method creates piForm and pushes it to the irootform.

piForm1 is displayed initially, need to pop that one and display form2.

I get this error on pressing the soft key,

Access violation reading location 0x000000f0.

These are my debug screen values.
piRootForm 0x000000f0 IRootForm *
piForm 0xf10008ce IForm *
piForm2 0xf1f1f1f1 IForm *

from your debug screen values it seems you have both your forms created but your rootform seems to have been freed up.
could you please post you createform functions?

from your debug screen values it seems you have both your forms created but your rootform seems to have been freed up.
could you please post you createform functions?

i am attaching my complete code.
I wrote 2 events, one for each form in addition to the applet event.
I need to know how to let the form event code handle the soft key event instead of the applet event handler.
Just need to push/pop form1/form2 by clicking on soft keys.

i am attaching my complete code.
I wrote 2 events, one for each form in addition to the applet event.
I need to know how to let the form event code handle the soft key event instead of the applet event handler.
Just need to push/pop form1/form2 by clicking on soft keys.