First, try removing your files one at a time and compile after 
each file has been removed. This will point you in the direction 
of the file that is causing the problem. 

Try commenting out large portions of code compile but leave 
all your globals declared and work it that way. If you still
are having problems with the code start commenting out globals.

Remove all of your files again and compile and see if that works.

Make a simple project that has only an alert box and display that 
with the new project that you have just created. 

The large memory model shouldn't matter with this problem. I have had 
problems with globals "seeing" each other across different files and 
the way that I have handled that in the past is I make a function and 
call the function from one file with the global as a passed parameter 
and then equate another global in the next file. Not elegant, but it 
works.

Hope this helps.

John.


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


OK,

Created a new multi segment project and brought in all my files. Made some
changes to the setting and compiled.  No problems.

Now...  NONE of these lists are working.....

Given the size of my code, Do you think this problem may be solved if I
break up the code further to have each segment no larger than 32K?

Also, I am using the "Large" code model in the settings.. Can this affect
anything?

Also, is there some sort of memory that variables can see eachother or a
range for globals?

Unfortunately, my app is using globals all over the place and I have a very
large app preference struct which is constantly being referenced as a
global.


Thanks for the help.

Jim


"Nesselhauf, John" <[EMAIL PROTECTED]> wrote in message
news:58950@palm-dev-forum...
>
> 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/

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