I'm loving this series, I'm a game designer who has decided to get his hands dirty (sooo dirty) in c++ and I like to tinker with stuff so I decoded to try using vs2013 as a complete solution, as opposed to just the debugger.
But I've hit an issue: Day 2 win32_handmade.cpp compiles and links just fine in VS, BUT when I go to debug it I get a breakpoint because:
1 | HEAP[handmadehero.exe]: Heap block at 00D24AF8 modified at 00D24B19 past requested size of 19 |
So investigated further and it seems to trigger this just before it reaches the if(WindowHandle) section of the code. WindowHandle in the watch window says 0xcccccccc {unused=???} and when I expand the arrow I get 'unable to read memory'.
Am I just painting myself into a corner using VS2013 on win8.1?
I've attached my whole cpp file for those interested.
Thanks!