Hello,
Enjoying the series so far, early days though. It's been good going up until today. I just finished watching Day 22, with the live code editing, and ran into a minor problem that I can't seem to fathom.
I'm using Visual Studio Community 2015, and it seems unable to load the updated code instantaneously. Is this just a symptom of a later version of Visual Studio, or am I missing something?
In the output window I see the following -
BTL:46216 TC:51976 BTW:5760 - PC:36616 WC:42376 DELTA:5760 (0.030000s)
34.04ms/f, 0.00f/s, 116.13mc/f
'win32_handmade.exe' (Win32): Unloaded 'D:\Handmade_Hero\build\handmade_temp.dll'
'win32_handmade.exe' (Win32): Loaded 'D:\Handmade_Hero\build\handmade_temp.dll'. Symbols loaded.
BTL:51976 TC:59656 BTW:7680 - PC:44296 WC:50056 DELTA:5760 (0.030000s)
33.33ms/f, 0.00f/s, 112.84mc/f
BTL:59656 TC:65416 BTW:5760 - PC:50056 WC:55816 DELTA:5760 (0.030000s)
33.72ms/f, 0.00f/s, 115.01mc/f
'win32_handmade.exe' (Win32): Unloaded 'D:\Handmade_Hero\build\handmade_temp.dll'
'win32_handmade.exe' (Win32): Loaded 'D:\Handmade_Hero\build\handmade_temp.dll'. Cannot find or open the PDB file.
BTL:65416 TC:88456 BTW:23040 - PC:73096 WC:78856 DELTA:5760 (0.030000s)
2888.12ms/f, 0.00f/s, 9820.56mc/f
BTL:88456 TC:88456 BTW:0 - PC:73096 WC:78856 DELTA:5760 (0.030000s)
33.33ms/f, 0.00f/s, 113.15mc/f
I'm not exactly sure why it's attempting to unload and load the dll twice, or why that delay creeps in.
I found
this tweet from the same night as the stream that suggested a newer version of Visual Studio would prevent dynamic code loading under the debugger. Is that what's happening here?
Apologies if this has been done to death by now - I realise the majority of you have moved on somewhat. My searches on this forum didn't turn anything up, so I figured I'd ask. Thanks in advance.