Stupid output outside of debug's life moda

closed account (jvqpDjzh)
I have created an Append() function (for my String class) and in debug mode I observe all steps and the output at the end is what I expect, but when I run the application outside the debug mode the output is stupid:
Hello     MNTOOLS=C:\Program
instead of
Hello     Good      Morning
(Ok, this is also stupid!)

EDIT: my string before:
Hello
. Then I add this:
      Good      Morning

Suggestions?

Last edited on
It looks like it's grabbing an environment variable instead of printing Good Morning.

Do you use any environment variables? What is MNTOOLS? Check for differences between the Debug and Release build configs, specifically check the pre-processor definitions and any macros that may be defined.
closed account (jvqpDjzh)
No environment variables.
I have also an Assign() function, which erases the content of the string and with this last one I have no problems. Maybe is there a cancer in my code?

specifically check the pre-processor definitions and any macros that may be defined.
I've never noticed the settings of the preprocessor, actually I just know that the preprocessor is responsible for including the header files, ecc. Sorry.
Last edited on
Topic archived. No new replies allowed.