Hi
I have very strange situation. When I debug or release my program everything is working correctly. By when I try to run the same program from .exe file (outside the Visual Studio 10) after some time some strange errors appears. How this is possible ? In Visual Studio I have no errors or even a warnings. I heard that it might be because of wrong referencesr but still I don't know how to fix it. I would be very happy if you help me :)
Loading
Mahesh ChandPosted Mar 15, 2011, 12:26 PM
http://www.c-sharpcorner.com/Forums/Thread/99220/exe-hangs-when-outside-of-vs2005.aspx
jan kostrzewaPosted Mar 15, 2011, 12:05 PM
2. If I would not have a dependency files some erros should appear ? Am I wrong ? Because I have no error.wornings during debugging.
3. I go to my Debug folder and double clik on my exe but it doesn't work properly from there.
My conclusion is such that it can be only problem with multi-threading. Am I wrong ?
Mahesh ChandPosted Mar 15, 2011, 11:27 AM
Are you using multi-threading? If yes, you need to put your thread to Sleep for a little but before you start a worker thread. It works in debug and Visual Studio because it gets sometime to stop the thread.
Do you have an dependency files? Make sure they are there.
Last! Go to your Debug or Release folders and double click on your exe to see if it works from there.
jan kostrzewaPosted Mar 15, 2011, 10:32 AM
jan kostrzewaPosted Mar 11, 2011, 5:07 AM
2. if run.exe file and load graph "duzy.xml" than for example click "start calculating" then "restart" than "start calculating" you get error. When you do exactly the same by from Visual Studio then no problem
FroglegPosted Mar 11, 2011, 4:14 AM