I am working with a program somebody else created. I have quite some experience with coding, but not all that much with coding in C++, so I'm doing a lot "learning by doing" here. So the program seemed to be stable, I started my work on it, which mostly included doing small modifications in small parts of the program. Recently I did some performance optimization, which also seemed to be stable, but 2 days ago I changed something and kept getting crashes. So I reverted my changes and still got the crashes. I started using Application verifier and Global flags with activated Page heap and everything heap-related checked to find out what was causing those problems. So since then the debugger always crashed with a "std::bad_alloc" error. Since I was using SVN I also checked the very first version of the code that I ever got - and I also get the bad_alloc-crash there.
Now my question: Can I be absolutely sure, that this bad_alloc crash with Application Verifier enabled is an indicator for a bug inside the program? When using Application verifier, the program itself uses a lot of memory, around 1-1.1gb, but never any more. Total system memory is used up to 80-90% at most, so I don't think there is an actual allocation problem caused by too little free space. What do you think?