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.