i found problem, so just in case anyone will look for it...

in ThunkPalmOS.c in IrIAS_Query function author uses this thunk variable. but
this variable is local, so as soon as application leaves this function and
enters another ona this thunk may get overwritten and then of course instead of
calling callback it goes to undefined place.

i made this variable static (so its in global variable space) and now it works
like it should

Michal Seliga wrote:
> hi
>
> my application uses expanded mode with a5 jumptable. it worked on 
> palmos5devices
> but was crashing on older ones
>
> browsing messages in this newsgroup i found, that to make it work i need to
> include ThunkPalmOS.h instead of PalmOS.h and rewrite some functions (compiler
> told me which ones)
>
> after this application works, but i found problem with IrIAS_Query - on 
> palmos5
> devices it crashes when callback arrives if i use thunks and works if i 
> doesn't.
> all other functions (gadgets, eventhandlers, custom draw functions...) work 
> so i
> don't know what is wrong.
>
> does anyone has similar problems?
>

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

Reply via email to