Hello, David French wrote:
> There is a reported issue with global variables being lost in > use of print > preview see http://www.oooforum.org/forum/viewtopic.phtml?t=33217 Thanks, i see. But i think that's not the same. When i use this: Global Listener As Object Global View As Object Sub registrieren() View = ThisComponent.getCurrentController Listener = CreateUnoListener( "listen_", "com.sun.star.view.XSelectionChangeListener" ) View.addSelectionChangeListener(Listener) End Sub Sub entfernen() View.removeSelectionChangeListener(oListener) End Sub Sub listen_selectionChanged(oEvent) msgbox "test" End Sub i run Sub registrieren() and the listener works correctly. However, when i enable the print preview and following i leave the print preview, then the listener is not working - and i think this is the same problem like: http://www.oooforum.org/forum/viewtopic.phtml?t=33217 but, my problem is that i use: Global y() Global Listener As Object Global View As Object Sub Listener_registrieren() '[...] View = ThisComponent.getCurrentController Listener = CreateUnoListener( "listen_", "com.sun.star.sheet.XActivationEventListener" ) View.addActivationEventListener(Listener) End Sub '[...] when i go to the print preview and i leave the print preview, then OOo is crashed in this moment. "crashed" means that the complete OOo-Applikation goes down, all open windows/dokuments are closed, in my words: 'OOo is dead'. In both cases, my question is: is there a work-around? Regards Jörg OOo 2.0.4 (german) and MS Windows 2000 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
