Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. What does this mean?

What does this mean?

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SmilingHeart
    wrote on last edited by
    #1

    I encounter a warning, when i debug a programe. The warning message is "User breakpoint called from code at 0x77f97704".I donot know the reason. When this warning message appears, VC shows a screen of assembly code to me.Please tell me the reason to cause this warning . I love sea

    T 1 Reply Last reply
    0
    • S SmilingHeart

      I encounter a warning, when i debug a programe. The warning message is "User breakpoint called from code at 0x77f97704".I donot know the reason. When this warning message appears, VC shows a screen of assembly code to me.Please tell me the reason to cause this warning . I love sea

      T Offline
      T Offline
      Taka Muraoka
      wrote on last edited by
      #2

      Is VC stopped at a line that says "int 3"? You've probably hit an assertion somewhere i.e. done something wrong. Bring up the call stack (ALT-7) and have a look at what was going on at the time. If you press F11 a few times, you might be able to switch back to your original source code as well.


      he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

      S 1 Reply Last reply
      0
      • T Taka Muraoka

        Is VC stopped at a line that says "int 3"? You've probably hit an assertion somewhere i.e. done something wrong. Bring up the call stack (ALT-7) and have a look at what was going on at the time. If you press F11 a few times, you might be able to switch back to your original source code as well.


        he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

        S Offline
        S Offline
        SmilingHeart
        wrote on last edited by
        #3

        Yes you are right. But i donot know what the assembly codes mean.Have you ever encourted this problem?How can i solve this problem. I love sea

        T 1 Reply Last reply
        0
        • S SmilingHeart

          Yes you are right. But i donot know what the assembly codes mean.Have you ever encourted this problem?How can i solve this problem. I love sea

          T Offline
          T Offline
          Taka Muraoka
          wrote on last edited by
          #4

          You don't need to understand the assembly. INT 3 is how Visual C++ stops the program if an assertion failure happens. If you don't know what that means, look up what the assert() macro does. What has happened is that some code somewhere has noticed that something has gone wrong and stopped the program for you, where it happened, so that you can do something about it. For example, if you call strlen() like this: char* p = NULL ; size_t n = strlen(p) ; strlen() might be smart enough to detect that you passed in a NULL pointer and assert. So bring up the call stack as I suggested and you can see exactly where your program was when it stopped. And pressing F11 a few times *might* get out of the assembly code and back to some C source code.


          he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups