> If i use * or / operator or functions in another segment it crashes
because
> it can't reach them.
> The code use many encoders that use more than 64k (called
> by the callback).
In your main code segment, write a stub routine, something like:
long MyMultiplication(long x, long y)
{
return x*y;
}
Then, pass the address of this function to your callback using the userDataP
parameter. Inside your callback, cast this to a pointer to a function, and
call it each time you need to perform a multiplication. Another solution is
to write your own multiplication support routine, and to copy it in each
segment.
Both require you forget the standard * operator, and use function call
instead. Will not really improve code readability...
Pascal
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/