The case of the mysterious crash

In case you get mysterious crashes, inexplicable messages of access violations and other strange errors on seemingly innocent code:

Check your project settings, especially if your project makes use of other (3rd party) libraries:

So simple, and yet so easy to overlook and hard to detect.