Stupid output outside of debug's life moda

Jun 1, 2014 at 12:06pm
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 Jun 1, 2014 at 12:12pm
Jun 1, 2014 at 12:17pm
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.
Jun 1, 2014 at 12:42pm
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 Jun 2, 2014 at 3:14am
Topic archived. No new replies allowed.