I've got a really irritating problem with a project I'm working on.. in certain situations (i.e. not always, but in specific cases - I haven't found out yet when exactly, but I'm able to reproduce the problem), ending the game (no matter if I end it regularly by executing DBPs
end command or by pressing ALT+F4) results in that typical Windows Error. I never had that before, and given the code has about 8,000 lines and I have absolutely
no idea how to debug this, I'm kind of lost.
All I could do so far is make sure all the arrays have a reasonable size when ending the game, because I assumed freeing a huge amount of memory might cause DBP to be working for quite a while, resulting in Windows suspecting something is wrong, leading to that error. But all the arrays are fine, there doesn't seem to be anything wrong with the memory usage.
I assume it might be possible that one of the 3rd party plugins interferes with DBP in some way. For instance, if I call
d3d_starttext but not
d3d_endtext (or similarly
as begin sprite render without
as end sprite render), that might cause trouble. But I'm pretty sure this doesn't happen anywhere in the code, especially because this would most certainly cause problems
during the game as well and not just when ending it.
Has anyone had similar experiences? Or do you have any idea how I could find out what exactly causes DBP to crash? Any help would be greatly appreciated.
And before anyone asks - yes, I'm sure it's the end command that leads to the crash and not anything else in the code. The last command before the end definitely gets executed, and the first one after the end does not.