One of the user I support runs an older CAD application that doesn’t work properly on computers using a dual core processor. It creates ghosting artifacts when he draws and eventually crashes the application. The trick is to limit the application’s process to only one processor (or one core). To do it manually:
- Launch the application
- Locate the application’s process in the Task Manager (type taskmgr from the Run command or press Ctrl+Alt+Delete)
- Right-click on the process and select Set Affinity
- Uncheck all the selected CPUs except one.
It works well, but it needs to be done every time the application is launched.
To do it automatically, I downloaded a free command line utility from a company called Beyond Logic: process.exe. To have a process named ExampleAppProcess.exe use only CPU 1, type:
process -a ExampleAppProcess.exe 01
So, I copied process.exe in a folder and added the path to this folder to the PATH environment variable. Then, I opened Notepad and typed:
cd c:\Program Files\ExampleAppFolder
start ExampleApp.exe
process -a ExampleAppProcess.exe 01
I saved this file as Affinity.cmd and added a shortcut to it on the Desktop. I changed the name and the icon of the shortcut to match the one used by the original application, and then deleted the original shortcut.
Now my user doesn’t have to do anything special: He double-clicks on what appears the be the same shortcut as before, but now his application works.