CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Posts
    756

    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.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How to properly set a breakpoint

    Quote Originally Posted by OneEyeMan View Post
    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

  3. #3
    Join Date
    Aug 2002
    Posts
    756

    Re: How to properly set a breakpoint

    Thx, Paul.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured