So, after debugging for a while and killing hundreds of enemies I get some errors...
Windows has triggered a breakpoint in template.exe.
This may be due to a corruption of the heap, which indicates a bug in template.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while template.exe has focus.
The output window may have more diagnostic information.
And upon clicking continue a couple of times...
Debug Assertion Failed!
Program:
....s\AGK\IDE\templates\template vs10_al_tweak\Final\template.exe
File:f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322
Expression: _CrtlsValidHeapPointer(pUserData)
For more information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
And after clicking retry I get...
template.exe has triggered a breakpoint
Then after clicking continue, it gives the first error again, where I click continue again, thereafter follows a constant stream of unhandled exceptions.
I can't seem to pinpoint this to something in my own code, and the call stack seems point to AGK.
Here's the call stack.
> template.exe!operator delete(void * pUserData) Line 52 + 0x3 bytes C++
template.exe!AGK::cObject3D::~cObject3D() + 0x4d bytes C++
template.exe!AGK::agk::DeleteObject() + 0x2a bytes C++
template.exe!Particle::UpdateParticle() Line 6 + 0xc bytes C++
template.exe!ParticleSystem::UpdateParticles() Line 28 + 0xf bytes C++
template.exe!Level::Simulate() Line 48 C++
template.exe!Engine::Run() Line 29 C++
template.exe!app::Loop() Line 38 C++
template.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 672 C++
template.exe!__tmainCRTStartup() Line 275 + 0x2c bytes C
template.exe!WinMainCRTStartup() Line 189 C
kernel32.dll!765b8543()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!77a2ac69()
ntdll.dll!77a2ac3c()
Edit: I'm using 108Beta11, but I had this problem in beta 9 and 10 too.