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. App Launch Crash

App Launch Crash

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestion
11 Posts 6 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.
  • J john5632

    Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?

    A Offline
    A Offline
    Andrew Brock
    wrote on last edited by
    #2

    Perhaps an exception code, minidump, memory snapshot, anything could help, attatch the visual studio debugger as a JIT debugger.

    1 Reply Last reply
    0
    • J john5632

      Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?

      M Offline
      M Offline
      Madhu Nair 0
      wrote on last edited by
      #3

      john5632 wrote:

      it is not lanching and producing a exception

      What is the exception ?

      modified on Wednesday, January 19, 2011 10:43 PM

      J 1 Reply Last reply
      0
      • J john5632

        Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?

        K Offline
        K Offline
        KingsGambit
        wrote on last edited by
        #4

        May be you will have to install the VC++ 2008 redistributable as well.

        A 1 Reply Last reply
        0
        • J john5632

          Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #5

          That's mean it doesn't work on another machine? If the answer is yes then you probably have to deploy VC runtime and/or MFC DLL (see, for instance, http://msdn.microsoft.com/en-us/library/8kche8ah(VS.90).aspx[^]). :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          1 Reply Last reply
          0
          • K KingsGambit

            May be you will have to install the VC++ 2008 redistributable as well.

            A Offline
            A Offline
            Andrew Brock
            wrote on last edited by
            #6

            Although some people define "crash" rather generally, if it was missing the runtimes it would generally show a message saying something like "the application failed to initialize. The application configuration is incorrect"

            1 Reply Last reply
            0
            • M Madhu Nair 0

              john5632 wrote:

              it is not lanching and producing a exception

              What is the exception ?

              modified on Wednesday, January 19, 2011 10:43 PM

              J Offline
              J Offline
              john5632
              wrote on last edited by
              #7

              As soon as IO try to launch the application using installer I get the below exception: Problem Event Name: APPCRASH Application Name: Myapp.exe Application Version: 6.3.11.0 Application Timestamp: 4d343707 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7600.16385 Fault Module Timestamp: 4a5bdb3b Exception Code: c0000005 Exception Offset: 00038c39 OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 4c0d Additional Information 2: 4c0d4d78887f76d971d5d00f1f20a433 Additional Information 3: 4c0d Additional Information 4: 4c0d4d78887f76d971d5d00f1f20a433

              A 1 Reply Last reply
              0
              • J john5632

                As soon as IO try to launch the application using installer I get the below exception: Problem Event Name: APPCRASH Application Name: Myapp.exe Application Version: 6.3.11.0 Application Timestamp: 4d343707 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7600.16385 Fault Module Timestamp: 4a5bdb3b Exception Code: c0000005 Exception Offset: 00038c39 OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 4c0d Additional Information 2: 4c0d4d78887f76d971d5d00f1f20a433 Additional Information 3: 4c0d Additional Information 4: 4c0d4d78887f76d971d5d00f1f20a433

                A Offline
                A Offline
                Andrew Brock
                wrote on last edited by
                #8

                Exception Code: c0000005 is a protection fault. You tried to read/write to a bad memory address. Although it says the error occurred in ntdll, it is most likely an argument you passed into a function in there. Try attaching a debugger to the process when it is in the crashed state to see the call stack. At a rough guess I would say it is something to do with your command line processing

                J 1 Reply Last reply
                0
                • A Andrew Brock

                  Exception Code: c0000005 is a protection fault. You tried to read/write to a bad memory address. Although it says the error occurred in ntdll, it is most likely an argument you passed into a function in there. Try attaching a debugger to the process when it is in the crashed state to see the call stack. At a rough guess I would say it is something to do with your command line processing

                  J Offline
                  J Offline
                  john5632
                  wrote on last edited by
                  #9

                  But If I run the application using clicking the exe, it is running and same exceptino is coming after quit the application. But If I run application as Admin, It works fine. What is the problem?

                  A 1 Reply Last reply
                  0
                  • J john5632

                    But If I run the application using clicking the exe, it is running and same exceptino is coming after quit the application. But If I run application as Admin, It works fine. What is the problem?

                    A Offline
                    A Offline
                    Andrew Brock
                    wrote on last edited by
                    #10

                    Then your code must do something that requires Admin rights (in the Cleanup) and you aren't handling the error properley. There is a vast number of things that this could be, but there is a fair chance that it is with a file. The Program Files and Windows directory are protected if UAC is enabled (Win Vista/7). For example, if you open a file in a protected location and try to read it without checking that it is open you may be using invalid data.

                    1 Reply Last reply
                    0
                    • J john5632

                      Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?

                      A Offline
                      A Offline
                      Abhi Lahare
                      wrote on last edited by
                      #11

                      In addition to what others suggested, please make sure all the dependent files ( lib and dll) are located by your installer app. Hope this helps

                      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