> (Press Retry to debug the application)
Do this.
When the debugger starts, do something like
view->stack
That will tell you how the code got to that point.
Somewhere through the various stack levels will be your code. Click on the first one you recognise. It should open your source code. Examine really carefully all the parameters which are being passed. Chances are, one of them is NULL, and it shouldn't be.