Just a shot in the dark here, but have you tried either setModel(NULL) on the view before you delete it, or flipping the deletion of the model and view objects? The view may be referencing the model object, and not yet be getting the deletion notification from the model, and then goes on to try and dereference it. It's a longshot, but, it may just work.




Reply With Quote
Bookmarks