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