Nothing in that description says anything about Visual C++, which is the topic of this forum.
So why not take in consideration what the error message is telling you? Did you track allocations...