i use visual studio for my c++ projects. This is probably not a visual studio problem rather my computers. When i compile and run my programm e.g. with ctrl+f5 a terminal opens (as it should), the programms seems to be fine and continuing , but after 10-15 seconds it closes an reopens again to re-execute. Now the second time it finishes as it should. Does anyone have any idea how i can fix this? This is not exactly a visual studio problem since its is happening in any environment that i use c++ e.g. omnet++ simulator.