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. Application terminated without error message

Application terminated without error message

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++designdebugging
4 Posts 4 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.
  • L Offline
    L Offline
    ly60269
    wrote on last edited by
    #1

    Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:

    L T M 3 Replies Last reply
    0
    • L ly60269

      Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Faulty memory, this can cause spontanouse reboots and programs crashing with oany apparent reason.

      1 Reply Last reply
      0
      • L ly60269

        Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:

        T Offline
        T Offline
        Tim Deveaux
        wrote on last edited by
        #3

        This can happen with a simple stack 'overrun'. Lets say you have a function with a char buf[20]; declaration. Then, you copy more than 20 chars to that array - you will overwrite other stack data - possibly the return address of the function - with just such highly unpredictable results.

        1 Reply Last reply
        0
        • L ly60269

          Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:

          M Offline
          M Offline
          Mark Terrano
          wrote on last edited by
          #4

          I'd guess stack overrun too - its fairly easy to do, and can happen if you pass bad values to some windows functions. Step through your program when you get to the 'bad' area (or use logging, with a flush after each write to your log file) and check carefully around the last thing you did. Check for mismatched parameters on your Calls to the DLLs - its a risk area. --Mark Terrano www.ensemblestudios.com (Creators of the Age of Empires series)

          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