Okay, token dumb questions...

1) Are you running the code as debug in Windows?

2) Which compiler and version are you using?