Stephan Wunderlich wrote:
Just a wild guess ... but when you switch to the print preview the original view is disposed and since the listener you added to the view isn't removed the office might crash.
Similar. The view is closed, this is notified to the API object, but not checked later, so it accesses a null pointer. We have to fix this in Calc, so it won't crash anymore, but the listener will still be lost when the view is closed.
It might be helpful if you add an event listener to the XComponent you should be able to query from the view and when it is called to remove all listeners you previously added.
That seems to be the best workaround for now. Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
