"Louis" <[EMAIL PROTECTED]> wrote in message news:72797@palm-dev-forum...
>
> I am using function pointers in my app. I know there is a 32K jump
limit
> that CW8 sorts out 'behind the scenes'. If I pass a function pointer
as an
> argument to a function that has to call it, will it cause a problem if
the
> function is in a different segment than the calling function?

No.  A C function pointer is an absolute address.  They won't be valid
from one run of a program to the next, but they can call anywhere.

A C++ method pointer is different.  It might be storing an absolute
address, but it could instead be storing a virtual table pointer along
with a method offset.  That's why those are 12-byte objects, versus a
4-byte normal function pointer.



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

Reply via email to