Windows – Some programs open and close immediately-Windows 7

computer-behaviorwindows 7

My PC suddenly doesn't open some programs when I double-click on them. I used Task Manager to check if the program runs in the background after double-clicking,and it does get listed under 'Processes' for a short moment and disappears.

Programs that are not opening:
CodeBlocks and Xamarin Studio.

Programs that open:
Eclipse,Cygwin,RStudio,NetBeans,Python,Google Chrome,MS Word Excel,VLC.

I've rebooted multiple times and also tried to 'Run as administrator'. That didn't help.

However,both programs run perfectly if machine is rebooted in Safe Mode.

Thanks.

Best Answer

The problem was being caused by the anti-virus program. I went to the settings and put those programs under 'Exclusions' and 'Allow'.This excludes those specific programs from being scanned,unless I manually scan them.

Before changing the settings of the anti-virus,I rebooted the machine in 'Safe Mode' and ran the programs to test if they would run without any issues,which they did.

So all issues solved.Programs are now running ok.

Hopefully this will help others.

Related Question