Udi Kobi schrieb:
> Hi,
> Running the release version of my application I found a bug
> where the debug version is fine.
> The bug is on the following line of code:
> t = MonthData[n] - 2; // MonthData is a simple array of intergers
> 
> The release version alters the value of 'n' with no reason,
> i.e. n equals X before executing the line and Y afterwards, where X <> Y.
> 
> Regards,
> -Udi
> 
> 

Hi Udi,

try adding the -fno-default-inline compiler flag to your makefile.
I had the same problems, and it fixed all of them.

The Debug build is always with -g -O0, which means no inlining. I guess
that your project has multiple code sections.

Regards,

        Juergen

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

Reply via email to