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. Debug information crashes my app :(

Debug information crashes my app :(

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelpquestion
5 Posts 5 Posters 1 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    for some reason my application fails to start and gets this message ... Debug Assertion failed! Program: blah blah blah File: objcore.cpp Line 43 When I rebuild all I see warnings C786: '...' : identifier was truncated to '255' characters in the debug information. I really don't care about the debug information. Why would debug information cause my application to fail?:eek: Please help!

    M A 2 Replies Last reply
    0
    • A Anonymous

      for some reason my application fails to start and gets this message ... Debug Assertion failed! Program: blah blah blah File: objcore.cpp Line 43 When I rebuild all I see warnings C786: '...' : identifier was truncated to '255' characters in the debug information. I really don't care about the debug information. Why would debug information cause my application to fail?:eek: Please help!

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      You've got bugs ... (assuming it's a MFC application) When the application crashes right at the beginning, it can be that one of the main resource ID or resource is corrupted or wrong. put a break point in InitInstance, or any other early called function and trace the problem. Are you sure the warning is not C4786 ? if it is, then, it might be STL naming demangling ( with all the template stuff ) It's a level 1 warning, and can be left alone; or can be removed with

      #pragma warning( disable : 4786 )

      before including stl headers. Max.


      Maximilien Lincourt For success one must aquire one's self

      1 Reply Last reply
      0
      • A Anonymous

        for some reason my application fails to start and gets this message ... Debug Assertion failed! Program: blah blah blah File: objcore.cpp Line 43 When I rebuild all I see warnings C786: '...' : identifier was truncated to '255' characters in the debug information. I really don't care about the debug information. Why would debug information cause my application to fail?:eek: Please help!

        A Offline
        A Offline
        AlexO
        wrote on last edited by
        #3

        Diagnostic of the problem is incorrect. If you run debug version (you do) and you use ASSERT in your code (you do) you will get the wonderful message. Example: ASSERT(nValue > 0); //if nValue <= 0 you will see dialog similar to the one you see. Second item compilation warnings could be safely ignored

        R 1 Reply Last reply
        0
        • A AlexO

          Diagnostic of the problem is incorrect. If you run debug version (you do) and you use ASSERT in your code (you do) you will get the wonderful message. Example: ASSERT(nValue > 0); //if nValue <= 0 you will see dialog similar to the one you see. Second item compilation warnings could be safely ignored

          R Offline
          R Offline
          rbc
          wrote on last edited by
          #4

          Thanks, It looks like my assert is failing in the call to SetRegistryKey? I don't rememeber writting this part of the code? How would my code cause this bug? Thanks

          T 1 Reply Last reply
          0
          • R rbc

            Thanks, It looks like my assert is failing in the call to SetRegistryKey? I don't rememeber writting this part of the code? How would my code cause this bug? Thanks

            T Offline
            T Offline
            Tim Smith
            wrote on last edited by
            #5

            That code is probably being called by other code which you are invoking. Look at the call stack to see who is calling who. Tim Smith I'm going to patent thought. I have yet to see any prior art.

            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