A driver attempted to write to read-only memory. Commonly occurs after installing a faulty device driver, system service, or firmware. If a driver file is named in the error message, try to correct the problem by disabling, removing, or rolling back the driver.
You could use microsoft's driver verifier to see what driver is causing your problem. There is a steep learning curve on how to use it so you may not want to try.
a AFD sys error is "Ancillary Function Driver" for WinSock
It's a system kernel driver, aka "AFD Networking Support Environment" and is part of the Windows TCP/IP stack, supporting socket operations. Some versions of Windows apparently exhibit a memory leak with this driver (link: http://dn.codegear.com/article/30362
) and, while Windows diagnostics reports that it does accept the "stop" command...it's probably best to understand its role first. See "link for more info's", i.e., "How To: Harden the TCP/IP Stack." My advice? Don't mess with it, unless you know *exactly* what you're doing.
You might want to read this similar thread.
i hope this helps.