One thing I could imagine is relative file pathes: If you load a texture or something like that from a relative file path and the work directory is not the program directory (for example if you run it by a shortcut), you can get a very annoying crash.

Or perhaps if you try to do something with an OpenGL extension which is not supported and you do not check if it is supported, you can also get a crash when pointers are involved.