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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. exe disappears in 5-10 minutes automatically

exe disappears in 5-10 minutes automatically

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminhelp
6 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.
  • R Offline
    R Offline
    rajeevktripathi
    wrote on last edited by
    #1

    Hi All I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application. Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically. What should I do to prevent this problem. Please reply .. Thanks & Regards.

    M C T 3 Replies Last reply
    0
    • R rajeevktripathi

      Hi All I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application. Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically. What should I do to prevent this problem. Please reply .. Thanks & Regards.

      M Offline
      M Offline
      Marc Soleda
      wrote on last edited by
      #2

      I've never found such an strange behavior like that. Do you have any piece of code candidate that we could take a look? Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

      R 1 Reply Last reply
      0
      • M Marc Soleda

        I've never found such an strange behavior like that. Do you have any piece of code candidate that we could take a look? Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

        R Offline
        R Offline
        rajeevktripathi
        wrote on last edited by
        #3

        Information related to program are as as follows 1) Program is written in VC++ 6.0. 2) WMI Classes for retrieving system hardware & software Inforamation. 3) Used Registry keys for information retrieval,(here I used RegOpenKeyEx(),RegEnumVale(), RegEnumKey() etc.) 4) Used some APIs for information retrieva(like OS Version, Computer Name, Number of processors etc.) 5) All the property pages are added to sheet in OnInitDialog() function. 6) Also everything is written in OnInitDialog(). 7) For every resource(S/W or H/W) a linked list is created . 8) node of Linked list is structure whose attributes are TCHAR and _bstr_t type 9)structures contains all the information retrieved by either WMI, or by Registry or by APIs. 10) Finally values are displayed on property pages through structures. * I have checked task manager there is no instance of program after termination. * Time span is not more than 10 mins. *Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box. *Also program is even terminated when there are no activities being done on the PC Please reply . Thanks

        M 1 Reply Last reply
        0
        • R rajeevktripathi

          Hi All I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application. Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically. What should I do to prevent this problem. Please reply .. Thanks & Regards.

          C Offline
          C Offline
          CWinThread
          wrote on last edited by
          #4

          Does this only happen in your release build? How about when you run the debug version under the debugger and leave it running? I've seen an app just disappear before as a result of stack corruption or overflow. In one case, someone was appending characters to a char buffer or STL string (can't remember which) in a loop. Problem was, they forgot to initialize the loop count. Thus, the loop kept going in the release build and the buffer was seriously overrun. In another case, stack overflow occurred when a function was being called repeatedly/recursively in response to network traffic.

          1 Reply Last reply
          0
          • R rajeevktripathi

            Hi All I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application. Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically. What should I do to prevent this problem. Please reply .. Thanks & Regards.

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            rajeevktripathi wrote: Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically. Your Executable may failing due to one or more reason, try to debug your Executable thats the only way to find solution!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            1 Reply Last reply
            0
            • R rajeevktripathi

              Information related to program are as as follows 1) Program is written in VC++ 6.0. 2) WMI Classes for retrieving system hardware & software Inforamation. 3) Used Registry keys for information retrieval,(here I used RegOpenKeyEx(),RegEnumVale(), RegEnumKey() etc.) 4) Used some APIs for information retrieva(like OS Version, Computer Name, Number of processors etc.) 5) All the property pages are added to sheet in OnInitDialog() function. 6) Also everything is written in OnInitDialog(). 7) For every resource(S/W or H/W) a linked list is created . 8) node of Linked list is structure whose attributes are TCHAR and _bstr_t type 9)structures contains all the information retrieved by either WMI, or by Registry or by APIs. 10) Finally values are displayed on property pages through structures. * I have checked task manager there is no instance of program after termination. * Time span is not more than 10 mins. *Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box. *Also program is even terminated when there are no activities being done on the PC Please reply . Thanks

              M Offline
              M Offline
              Marc Soleda
              wrote on last edited by
              #6

              You'll have to Debug and put several breakoints over the app to know where can it be the problem. You also can write a log file a write it in severela points of the applications where you suspect that there's the problem. MArc Soleda ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

              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