If you've made the game .EXE , Large Address Aware. You'll need to un-do the LAA and patch and then re-apply it.

I had this error , that's what fixed it for me.