Hi,
I've tried to put some of my code out to a shared GLib, to work around the 16k function pointer limit.
I've done this according to the example in the prc-tools CVS.


My compilation works, I get 2 prc files (one for my app, the other for the lib), and install them to my Tungsten T2.

Now when I run the application, it is significantly slower, and some of my functions (that previously worked like a charm) return crap.

For example I have a double to string routine in my lib, and that just delivers random chars, like if the pointers go wrong (which is my guess).
It doesn't crash, but only because I have a limit of reading max 8 chars, not beeing dependend for the final string termination.


So my questions:
1) Why is it so slow (is this a general problem for GLibs)?
2) How do I exchange data pointers between the calling function and the receiving library function?
3) What else do I have to consider when using GLibs? Are there better alternatives? GLib seemed like the fastest way for me, multi-segmenting and shared libs seemed rather complicated.


Any help appreciated,
Jan

P.S.: FOLLOWUP TO TOOLS-FORUM!!!


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

Reply via email to