I am working with strings (using them as path names for loading files), and I have the following, really basic line of code:
That's it. No tricks here.
However, when I execute this in the debug environment, the compiler sets the variable equal to...well...a directory path. Not an empty string. Not even complete junk like normal non-initialized variables have. But an actual string, seen elsewhere in my program, around 10 - 15 characters long.
It's always the same "directory path" string of characters, so at least it's consistant. I've worked with strings for years and haven't seen anything quite like this before. Maybe a memory leak...?
Code:
string temp = "";
That's it. No tricks here.
However, when I execute this in the debug environment, the compiler sets the variable equal to...well...a directory path. Not an empty string. Not even complete junk like normal non-initialized variables have. But an actual string, seen elsewhere in my program, around 10 - 15 characters long.
It's always the same "directory path" string of characters, so at least it's consistant. I've worked with strings for years and haven't seen anything quite like this before. Maybe a memory leak...?