Subsystem access violation crashes

You can have a look at the source code here:
Source Code