I'm receiving the error message shown on the following figure. This error pops up at the very end of my C++ code when main.cpp
goes beyond return 0;
it means just when the executable wants to exit. I'm not sure why this error is happening. Does anybody know what the reason can be?
I'm using Microsoft COM classes in my C++ code. Maybe the error is due to the fact that these libraries are not unloaded after return 0;
. Is there any command to unload all the loaded libraries (explicitly or implicitly) at the end of the main.cpp
?
I have shown below my main.cpp
. I think the error is because I don't use the delete
after new
inside my main.cpp
I'm not sure.