Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application crash without Visual Studio installed

Code is to large to send here, and i don't know which parts are important. I tried on every pc I have and it doesn't work of any of them. VS2010 compiles code without any warning or error and runs application fine, also works fine if I launch the app simply from the OS. When I put it on different PC doesn't work (I do have Framework 4.0 everywhere, other my apps works fine).

On my laptop (win xp) it says "Program encountered the problem and needs to be closed...". Standard windows "send / don't send" error say nothing specific about problem.

On my PC (win xp) it was saying same thing as on the laptop than I have installed Visual Studio there and it started to work fine. When i uninstall VS10 it crashed again with massage like "unhandled exception Just-in-Time debugger not found...", again nothing specific about problem.

My friend bring his laptop (win 7) and no message showed up but no app either. It didn't do anything no message, no application, not even process started. When i clicked on the icon wait cursor appeared for 2 sec and thats all.

Every time same thing no form is even showed it crashes instantly. Only pc where app actual works is PC (win 7) where I create it, with Visual Studio 2010 installed of course. I believe that other PCs miss some files or .dll and other junk which is installed with VS2010. Any ideas what to look for? I can't install VS everywhere its large and like saying "you need adobe premiere to watch the video".

EDIT: Events in Windows:

Application: Floorball.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
   at Floorball.Interface.InitializeComponent()
   at Floorball.Interface..ctor()
   at Floorball.Program.Main()

[SOLUTION] Well not exactly solved but I was able to found GUI component in InitializeCoponent() which is causing crash. Its stupid LineShape !! I dont realy understand why its not working properly everywhere ! So if every body has similar problem try this solution!

like image 771
Safiron Avatar asked Aug 30 '11 08:08

Safiron


People also ask

Why does Visual Studio keeps crashing?

If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.

How do you handle a crashing application?

Tap on the app's name and then tap on 'Force stop'. Now try opening the app again and see if it works well. Another way to fix apps crashing on your phone is to simply restart the device. Restarting the device will kill and then restart the processes that are run by the system as well as other apps.

What is crashing application?

An application typically crashes when it performs an operation that is not allowed by the operating system. The operating system then triggers an exception or signal in the application.


2 Answers

Sounds like you're trying to run a debug build on machines without debug dlls. Try compiling a Release version and see if that helps.

Addendum:

Another thing it might be (but it's really just guesswork without specifics) is 64/32-bit differences. If the program you are trying to run, does P/Invoke, this can be an issue. If your project is set to target Any CPU, then it will run as a 64-bit program on 64-bit OS and 32-bit on a 32-bit OS. Try to target x86 specifically and see if that changes anything.

like image 81
corvuscorax Avatar answered Sep 25 '22 05:09

corvuscorax


First three things that come to my mind:

  • Some .NET libraries are missing. If it has been compiled for .NET 4, it might require the full framework and it only finds the smaller "client" version. Check the redistributable.
  • Missing C++ libraries: if it's a C++ program, you need to install the C++ redist in addition to the .NET one.
  • Debug / release: if you compile in the debug configuration, the program will seek the debug .NET (and C++) libraries, which are not installed by the redistributable packages. Compiling with the Release configuration solves this problem.
like image 35
Coffee on Mars Avatar answered Sep 21 '22 05:09

Coffee on Mars