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.

Recommended Answers

All 2 Replies

Did you build debug or release version?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.