I'm not too sure what the problem could be. Sounds like alignment
in the segments. You could try creating a new project with the 
multisegment option already invoked, compile and make sure that 
there are no errors and then introduce your files into the project. 

As for a cure, that's all that I can suggest.

John N.

-----Original Message-----
From: Jim Duffy [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 4:07 PM
To: Palm Developer Forum
Subject: Multi Segment weirdness



Hi everyone,

I'm having some difficulty breaking my app into multiple segments.

I have followed the docs carefully and can compile no problem.  However,
once I change the "StartupCode.lib" file to the "MSL Runtime Palm OS
(2i).lib" file strange things happen.

Basically I have 5 lists in my app that are populated from 5 different 2
dimensional arrays that are stored in my app preferences.

In my FormInit routines, I call another function that sets a global to the
number of items in the list.  This way I can set the height of the list
control. this function is called 5 times. one for each list.

2 of the 5 times this function is called, it returns an incorrect number of
list items.

When watching all this happen in debug mode, it seems that the function
cannot "see" the array of list items in order to count them.

Does anyone know what could be causing this or how I can go about resolving
the issue??

Any help would be greatly appreciated.

The problem happens immediately after adding the "MSL Runtime Palm OS
(2i).lib" file.  Even without moving code into the second module.

I have moved about 7k worth of code in to segment 2 but this problem still
happens.

Thanks in advance.

Jim





-- 
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/

Reply via email to