I tried searching Google, but unfortunately couldn't find anything more than user-errors crashing programs with the dlls.
Problem is, I have a major memory leak in my program. We're talking jumps of 8k bytes or so. I ran a memory validator (for what it's worth) and as far as I can tell none of the code I've made myself is causing the issue. Almost every entry, however, has to do with atigktxx.dll and atioglxx.dll.
These are also files that VS warns "Cannot find or open the PDB file".
Here is the entire code, I apologize if pastebin broke my formatting.
and here is the output from the compiler:
Any help or insight is greatly appreciated.