i think so you have not passed the parameters correctly
just check the para passing is correct,try to put a frm alert after this fun.

 
On 9/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi All,

I am trying to create a control at runtime without using a resource as ..

char* text = "A";
FormType* pForm = FrmGetActiveForm();
ControlType* ctrl;
ctrl = CtlNewControl( (void**)&pForm, 1917, pushButtonCtl, text,
                     50, 50, 10, 10, stdFont, 100, true);

but after that my program crashes by giving following error.

"memorymgr.c, Line:3752, Free ptr"

and if I try to chk the validity of the the contol as follows .. it crashes giving System error dialog in the emulator ( (Sys 0505)(0, 808) ).

bool check = CtlValidatePointer(ctrl);

Can anyone please tell me the reason?

thanks in advance.

..
KiraN Puranik
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to