May 15, 2024, 08:46:41 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


A 'gottcha' - For What It's Worth

Started by LarryMc, August 03, 2007, 11:30:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

While working on a multi-source file project I started getting  warning messages during compile saying that a couple of functions exceeded 131,000+ bytes.
The program would compile and run.

The functions that were generating the warnings used only strings and ints (no istrings or UDTs) and couldn't possibly take up that much space.


It took a while to find what was causing it.

The functions that were in question were calling other functions and passing a locally defined string variable.  At some point I had put a const in an include file with the same name.

As soon as I renamed the const in the include file ( the easiest to change) the warnings disappeared.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library