Why is this?
Run the application in a debugger, and show the line on which it crashes.