Running in F5, Ctrl+F5, and outside VS
I have some problem running an application outside visual studio in release mode. 

The application is rather large and complicated including motor controll and cameras. It is a client server application and it is the server part that does not run correctly outside visual studio.  

In debug F5, ctrl F5 and outside visual studio works fine.

In release F5 and ctrl-F5 works fine, but outside visual studio it does not work correctly. Basically the motor controllers does not start correctly and the motor can't be used later in the application. So the initialization is different in some way then running outside visual studio. 

I use Visual studio 2010 and windows 7. The working directory is set to be the output directory. The motor control part of the server does not use any dlls (static linked).

Most Q seems to be related to the difference between F5 and ctrl-f5, and not related to the difference between ctrl-f5 and ouside VS.     
Running in F5, Ctrl+F5, and outside VS
===

I have some problem running an application outside visual studio in release mode. 

The application is rather large and complicated including motor controll and cameras. It is a client server application and it is the server part that does not run correctly outside visual studio.  

In debug F5, ctrl F5 and outside visual studio works fine.

In release F5 and ctrl-F5 works fine, but outside visual studio it does not work correctly. Basically the motor controllers does not start correctly and the motor can't be used later in the application. So the initialization is different in some way then running outside visual studio. 

I use Visual studio 2010 and windows 7. The working directory is set to be the output directory. The motor control part of the server does not use any dlls (static linked).

Most Q seems to be related to the difference between F5 and ctrl-f5, and not related to the difference between ctrl-f5 and ouside VS.     