Hi
The normal way to find out what is going on is using the debugger.
So compile the app In debug mode and start it.
When it crashes you should be able to see what it was doing in the call stack.
The call stack is the area under the editor window when starting in debug mode
alt text
As you can see it shows where the program was running.
The function list.
This should give a hint as to why it does crash.