Saturday, October 08, 2011

Fixing spoolsv.exe error

On Windows startup you may get a window dialog stating "The instruction at 0x00000000 referenced memory at 0x00000000. The memory could not be written", or something to that effect.

Fortunately, Microsoft has a KB article on how to fix this that works. Just follow the steps and you should have your print spooler service back in order. I'll reproduce the essential steps here. The article has the details.

1. Restart the computer in Safe Mode
2. Delete all files and folders in the following folders: 
  • C:\Windows\System32\spool\printers
  • C:\Windows\System32\spool\Drivers\w32x86
3. In regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86 and delete all subkeys except the following:
  • Drivers
  • Print Processors
4. Again, use regedit to navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors and delete all subkeys except the following:
  • BJ Language Port
  • Local PortPJL Language Monitor
  • Standard TCP/IP Port
  • USB Monitor
Restart the computer normally. The print spooler service should no longer crash. Printers may need reinstallation.