C#: Executable is much slower if launched outside Visual Studio (2013, 2019)

  • Thread starter Thread starter KN20
  • Start date Start date
K

KN20

Guest
Hi. I faced toa problem while coding at the end on my project (c#). Everything was okay in developing stage. I was coding and testing software in Visual Studio by pressing F5 / Ctrl+F5. Computation time was around 40-50 minutes and it was okay. Then, while testing, I started the program by double-click in the file explorer and I observed program speed drop and extension of computation time to around 6 hours! Could anybody give me a hint what could be the reason? What is the difference between program start by Ctrl+F5 (launching without debugging) and “normal” start of a windows application by double-click? Does Visual Studio apply specific environment for programslaunched in VS?


Software:


<myprogram.exe>-<base_func.dll>-(WCF)-<nx.dll>


The second dll – nx.dll – is loaded into Siemens NX to perform CAD operations.


Dlls “base_func.dll” and “nx.dll” communicate using WCF.


I noticed already:

1. The same behavior for debug and release compilations.

2. Compiler settings have no effect.

3. Installing using NGEN has no effect.

3. Integrating“base_func.dll” into “myprogram.exe” makes no difference.


Any hint?

Continue reading...
 
Back
Top