I just tested a bit with the SelectionChangeListener, but cannot confirm a crash upon opening up File>PrintPreview. In your case it is very likely due to some IO processing you're doing (in wrong manner or at a wrong time).
So in order to see what is giving you problems, it would be nice to catch a glimpse at the relevant code portion(s). 2006/6/7, Sascha Jensen <[EMAIL PROTECTED]>:
hi , currently i develope a reporting system. As Template-Editor for my Report-Templates I use swriter, which is embedded in my application window. References to items are inserted by dragging items from a tree onto the document view using an XDropTargetListener which is installed into some XWindow's. So far everything works fine, but there are some situations where my installed handler causes trouble. If I insert a TextFrame into an empty text document (via. Insert->TextFrame) and in the next step a Table into the TextFrame, swriter crashes. The last document events i get are OnCopyTo and OnCopyToDone, which i only get if OOo crashes (maybe this is just for recovery?). Furthermore i get an com::sun::star::io::IOException. This only happens if my XDropTargetListener is installed. It works if there are at least two paragraphs (may be empty) in the TextFrame and the table is inserted between them. Another problem occurs if i install an XSelectionChangeListener for the document. Swriter crashes if i choose File->PrintPreview. Here too i get an com::sun::star::io::IOException. Has anybody a hint what may be the cause for this? Or should i remove those handlers if certain commands are executed? I am developing with OOo 2.0.2 SDK and C++ in Visual Studio 2003 on Windows (XP). The integration of OOo into our framework is done in a seperate Dll. any help would be appreciated, Sascha --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Best Regards Christian Junker --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]