I am trying to create a program using wxWidgets and Visual Studio.
There is a pointer that I am creating and storing in the vector, but when the program exists, I'd like to properly delete the pointer(s).
But for some reason the pointer is changed at that time.
My question is: How to make a breakpoint in the MSVC to catch a moment
when the pointer changes/becomes invalid?
This is a GUI program and I'm trying to catch a pointer that is created inside a DLL.
The problem I'm facing is that I don't know the file where the pointer changes, so I can't actually set a breakpoint at some particular place.