I think what he's trying to say is that he's trying to make globals
he used in a single segment app work across multiple segments. From
his post, I'd gather that he needs to really rework his application
design and utilize the power of passing by reference using CharPtrs.
What he needs to do is to break out small parts of his larger functions
that require a few params into individual functions, then put those over
in the other segments. Or, he could redesign his app in a way that
would have each form in a separate segment (or put a couple closely
knit forms together in some segments), with all the helper code tied
into that segment. There are a number of solutions to this, but all of
them require reworking the code (which is one reason why excessive use
of globals isn't exactly considered a good programming practice) into a
more multi-segment friendly version.
It's probably not going to make his app any faster, though...if the
specs called for quick, then he should have found a way to keep it under
32k single segment (or use 68k code whenever applicable).
-Rus
>> From: Peter Ludwig [mailto:[EMAIL PROTECTED]]
>> I have a program that uses global variables for in-program data work.
>> now I have had to move the program into a multi-segmented
>app to allow
>> for me to use more memory storage than is available in one segment.
>
>Eh? Multi-segment code has nothing to do with the data
>segment. You are
>still limited to a single data segment of about 64KB maximum size.
>
>-slj-
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/