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. Managed C++/CLI
  4. managed c++ app refuses to run

managed c++ app refuses to run

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpasp-netdotnetcom
6 Posts 4 Posters 2 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 Offline
    J Offline
    Jason Henderson
    wrote on last edited by
    #1

    We're having a problem on a few client machines where our managed C++ MFC app will not start. Its a managed c++ app linked to some C# dlls. It won't even hit the constructor or OnInitApp. Its almost identical to this: http://www.eggheadcafe.com/community/aspnet/36/10076902/mixed-c-managed-c-c.aspx[^] but of course there was no solution posted. I have one of the offending machines and it starts in safe mode, but not when starting windows normally. I have also shutdown nearly every service, including anti-virus apps. It seems like something is blocking it but everything that possibly would be blocking it has been turned off. Tried running the CLR Profiler with the app but the clr doesn't start. Any clue's as to what is causing this would be appreciated. Thanks

    "Make everything as simple as possible, but not simpler." - Albert Einstein

    Jason Henderson

    N T 2 Replies Last reply
    0
    • J Jason Henderson

      We're having a problem on a few client machines where our managed C++ MFC app will not start. Its a managed c++ app linked to some C# dlls. It won't even hit the constructor or OnInitApp. Its almost identical to this: http://www.eggheadcafe.com/community/aspnet/36/10076902/mixed-c-managed-c-c.aspx[^] but of course there was no solution posted. I have one of the offending machines and it starts in safe mode, but not when starting windows normally. I have also shutdown nearly every service, including anti-virus apps. It seems like something is blocking it but everything that possibly would be blocking it has been turned off. Tried running the CLR Profiler with the app but the clr doesn't start. Any clue's as to what is causing this would be appreciated. Thanks

      "Make everything as simple as possible, but not simpler." - Albert Einstein

      Jason Henderson

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Jason Henderson wrote:

      Tried running the CLR Profiler with the app but the clr doesn't start.

      Can you run any other .NET application on this machine? If not, I guess the problem will be with the setup of .NET framework.

      Best wishes, Navaneeth

      J 1 Reply Last reply
      0
      • N N a v a n e e t h

        Jason Henderson wrote:

        Tried running the CLR Profiler with the app but the clr doesn't start.

        Can you run any other .NET application on this machine? If not, I guess the problem will be with the setup of .NET framework.

        Best wishes, Navaneeth

        J Offline
        J Offline
        Jason Henderson
        wrote on last edited by
        #3

        While looking for some tool to help I installed PerfMon which I believe is a .net app and it ran fine. All of our other native apps run fine as well.

        "Make everything as simple as possible, but not simpler." - Albert Einstein

        Jason Henderson

        1 Reply Last reply
        0
        • J Jason Henderson

          We're having a problem on a few client machines where our managed C++ MFC app will not start. Its a managed c++ app linked to some C# dlls. It won't even hit the constructor or OnInitApp. Its almost identical to this: http://www.eggheadcafe.com/community/aspnet/36/10076902/mixed-c-managed-c-c.aspx[^] but of course there was no solution posted. I have one of the offending machines and it starts in safe mode, but not when starting windows normally. I have also shutdown nearly every service, including anti-virus apps. It seems like something is blocking it but everything that possibly would be blocking it has been turned off. Tried running the CLR Profiler with the app but the clr doesn't start. Any clue's as to what is causing this would be appreciated. Thanks

          "Make everything as simple as possible, but not simpler." - Albert Einstein

          Jason Henderson

          T Offline
          T Offline
          teejayem
          wrote on last edited by
          #4

          Sounds like you should install Microsoft Visual C++ 2008 Redistributable Package (x86)[^]

          Don't be overcome by evil, but overcome evil with good

          J 1 Reply Last reply
          0
          • T teejayem

            Sounds like you should install Microsoft Visual C++ 2008 Redistributable Package (x86)[^]

            Don't be overcome by evil, but overcome evil with good

            J Offline
            J Offline
            Jason Henderson
            wrote on last edited by
            #5

            It gets installed in our software's installation script, but I reinstalled it anyway. Didn't help.

            "Make everything as simple as possible, but not simpler." - Albert Einstein

            Jason Henderson

            Y 1 Reply Last reply
            0
            • J Jason Henderson

              It gets installed in our software's installation script, but I reinstalled it anyway. Didn't help.

              "Make everything as simple as possible, but not simpler." - Albert Einstein

              Jason Henderson

              Y Offline
              Y Offline
              YoavStein
              wrote on last edited by
              #6

              Two things may help you: 1.Use Depends(dependency walker) on the cli module. I beleive that you will find a missing environment path or a missing dll that you assumes you have. 2.Try Fusion Log - it will give you an indication of .net binding errors. Good luck, Yoav

              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