-
January 19th, 2010, 03:25 AM
#1
How to properly set a breakpoint
Hi, ALL,
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.
Note, that I'm using Visual C++ version 6.
Thank you.
-
January 19th, 2010, 07:36 PM
#2
Re: How to properly set a breakpoint
Originally Posted by OneEyeMan
Note, that I'm using Visual C++ version 6.
Thank you.
I think that in Visual C++ 6.0, you can set a breakpoint on a memory location, where if the value in that memory location changes, the debugger will automatically break.
Note that your program will be slower with these types of breakpoints.
Regards,
Paul McKenzie
-
January 19th, 2010, 07:58 PM
#3
Re: How to properly set a breakpoint
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|