#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14

    Debugging assertion errors.


    This is weird. I use MSVC++ on two systems, and they behave very differently with respect to debugging. Basically one doesn't do anything, and the other one is pretty useful. The difference is the OS. W98 vs XP. Its my XP box that can't seem to do anything with debugging: when I get an assertion error, all I get is a message box informing me of the error. "Debugging" then opens another message box:

    "The exceptin Breakpoint
    A breakpoint has been reached.
    (0xSomeNumber) occurred in the application at location 0xSomeothernumber.

    Click OK to terminate the program."

    All I can view from MSVC++ are the registers, and the disassembly, which, frankly mean squat to me. Clicking the ok button shuts everything down, and I'm back to staring at my code. How in the world am I supposed to get any meaningful information from this?

    On the W98 box I use, I can enter debug mode, and it will track down the exact ASSERT() statement that was causing the problem. At least occasionally, I could figure that out by examining where the code is, and if it was well commented, but now...who knows what could be going wrong?
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    I may be wrong, but I believe you have to load the nt debugging symbols for this to work correctly on your xp machine. It is based off of nt architecture, so these symbols are required.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    i am using delphi and during installation, it asks me if i want to replace dr.watson by their debugger.

    did ms ask you the same?

    maybe this is neccessary for debugging in NT...

    did you have a look at www.microsoft.com for this problem? (maybe your msvc version is not compatible to XP, you know, they want to sell their .NET to you! ;) )
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    Good possibilities, both of you. I'll look into it, and thanks for the advice. I can't remember about the install though, that was a while ago...

    Regarding .NET. I've been thinking of buying it. Due to the incredible educational discount (total price $99 for VS.NET), it doesn't make sense to put off buying it until after I finish grad school. Are workspaces made with .NET compatible with VS6?
  8. #5
  9. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    No, you can import vs6 stuff to .not, er .net, but you can go backwards from .net to vs6.
  10. #6
  11. No Profile Picture
    matthewdoucette.com
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2002
    Posts
    635
    Rep Power
    13
    Sorry to dig up an old thread, but I'm just curious if Onslaught was correct?
    Matthew Doucette / Xona.com
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    I think he was...unfortunately, I can't remember :o.

    I remember solving the problem, and doing a full re-install, but I don't remember if that was what solved the problem. I also migrated to VS.NET about two weeks after posting this...
  14. #8
  15. No Profile Picture
    matthewdoucette.com
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2002
    Posts
    635
    Rep Power
    13
    It's hard to remember specifically, but I think when you install MSVC++ on Windows XP it asks you to install some NT settings or something?

    Anyone know this?
    Matthew Doucette / Xona.com
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    That sounds familiar. I think the problem arose because my WinXP install was an upgrade, so the original install of VS was probably back from W98, and so the symbols wouldn't have been installed.

    If I recall correctly, the re-install asked me if I wanted to install the symbols, and after doing so, everything worked fine.

IMN logo majestic logo threadwatch logo seochat tools logo