Svchost.exe application errors usually occurs after (or during) Windows Updates before your previous shutdown. Even if you start your PC in Safe Mode (by pressing F8 key during boot up), you will still receive the “Memory could not be written” error message. If your technical, you can check your event log file and should be able to find out what process is actually causing the problem.
Why do you see "Generic Host Process for Win32 Services has encountered a problem" or similar error messages?
The are several possible reasons of this error message.
Reason 1: You have one of numerous worms, viruses and trojans which pretent themselves to be legal svchost.exe or use legal svchost.exe to run themselves at windows startup. These threats include: CashToolbar Downloader-MY, System1060, CoolWebSearch Svchost32, ADCLICK-AG, ADCLICK-AX, ADUYO-A, AGENT-V, AGOBOT-KL, AUTOTROJ-C and many others.
Reason 2: Some legal DLL which uses svchost.exe to run itself at Windows startup crashed and causes crash of the whole svchost.exe service.
Reason 3: You have just installed update from Microsoft which contains errorneous verison of Windows Installer or double-byte character set (DBCS) characters support (only occures in Microsoft Windows XP Service Pack 2 (SP2)).
Reason 4: You installed old printer or scanner drivers from Hewlett-Packard which are incompatible with the current version of svchost.ex