hl2.exe has stoped responding.. FIX

Last night I got the hl2.exe has stoped responding error and it was driving me crazy, half into a machinima I was working on I need to fix it. So i searched on the interent and found a few fixes. One of them being this:

http://www.facepunch.com/showthread.php?t=479952

But this didnt work for me…
Searching for 4 hrs I found a solution to fix this.

If you have another source game installed example hl2 css etc go into its directory

C:/programfiles/steam/steamapps/username/hl2

copy hl2.exe from there and paste it in your garrysmod folder overwriting the orginal exe

Then right click it make a shortcut. In the target box type

-game garrysmod -autoconfig -nocrashdialog

save it and run the shortcut it should work now.