0

Hello All!

i just created an executable in Windows(xp) and opened it up on Notepad++ and saw some strange comments:

Stack memory around _alloca was corrupted
A local variable was used before it was initialized
cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example:
char c = (i & 0xFF);
Changing the code in this way will not affect the quality of the resulting optimized code.

And my program is just this :

int main()
{
    return 0;
}

Has anyone seen these comments before? Can anyone please explain what exactly are these?

More details:

I built this on VC++ 2008.
Debug mode.

Edited by myk45

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by myk45
0

This was the debug version. interestingly, the release version doesn't have these comments.

Edited by myk45

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.