At 11:33 PM 12/11/2003, Deepak TVS wrote:
Hi all,
        I have the following code in my PNO.

......
 lDec->vSetParam = sDecSetParam;
lDec->vSetParam(3);
.....

My application crashes when it is executing  lDec->vSetParam(3).
But if I can my code to

......
sDecSetParam(3);
......

it works fine. Can I have function pointers in PNO ? Can anyone explain me
as to where I am going wrong ?

Please post PNO related questions to the pno-forum mailing list.


Function pointers don't work well in the CW 9.2 release but are fixed in 9.3. If you want to use them in 9.2, you need to call the __ARMlet_Take_Func_Addr__ routine defined in ARMlet_Startup.c in the runtime library to fix the function pointer to point to the right location.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to