Eduardo thanks, this is my original code but, still giving me the same error..  
It alway gives the erro when I run it twice the function... the second time 
gives me this error:.. MemoryMgr.c, Line 4384, Free Handle...

...
PI += -1.236215274 - 2.598564382 - 2.119863737 ;
PI = exp(PI);
PI = (1.0 - pow(0.906,PI))* 100.0;
textH = MemHandleNew(8);
str = MemHandleLock(textH);
doubleToStr(str, PI, 2);
MemHandleUnlock(textH);
FldSetTextHandle(GetObjectPtr(MainFieldRisk),textH);
FldDrawField(GetObjectPtr(MainFieldRisk));
MemHandleFree(textH);
return handled;
}

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

Reply via email to