Unreal Engine 4 code Stopped Compiling

I have been using unreal engine 4 with c++, but it suddenly stopped working. The error message was "Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I have tried removing my code, but that does nothing. Restarting visual studio and the engine also did nothing. Any help is appreciated, thanks.
Nevermind. I restarted my computer and that fixed it.
Topic archived. No new replies allowed.