To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63270





------- Additional comments from [EMAIL PROTECTED] Fri Mar 17 08:47:07 -0800 
2006 -------
I don't know if it is a good thing, but now, i obtain the same error also on the
first call :-) , the code that i use to save and close now is this:
XStorable
xstorable=(XStorable)UnoRuntime.queryInterface(XStorable.class,xComponent);
               PropertyValue[] storeProps=new PropertyValue[0];
               xstorable.storeAsURL(url+".sxw",storeProps);
               //System.gc();         

           xstorable.store();
           XModel 
xModel=(XModel)UnoRuntime.queryInterface(XModel.class,xComponent);

            if(xModel!=null)
            {
                com.sun.star.util.XModifiable xModify =
(com.sun.star.util.XModifiable)UnoRuntime.queryInterface(
                    com.sun.star.util.XModifiable.class,
                    xModel);

                xModify.setModified(false);
                com.sun.star.util.XCloseable
xClose=(com.sun.star.util.XCloseable)UnoRuntime.queryInterface(
                        com.sun.star.util.XCloseable.class,xComponent);
                xClose.close(true);
            }
            else
            {
                com.sun.star.frame.XController xController =
(com.sun.star.frame.XController)UnoRuntime.queryInterface(
                    com.sun.star.frame.XController.class,
                    xComponent);

                if(xController!=null)
                {
                    if(xController.suspend(true)==true)
                        com.sun.star.frame.XFrame xFrame = 
xController.getFrame();
                        xFrame.dispose();
                    }
                }
            }
        }
        catch (com.sun.star.io.IOException exIO)
        {
            System.out.println("ECC2");
            exIO.printStackTrace(System.out);
        }
        catch(com.sun.star.lang.DisposedException exDisposed)
        {
            System.out.println("ECC3");
            exDisposed.printStackTrace();
        }
        catch(com.sun.star.uno.RuntimeException exRuntime)
        {
            System.out.println("ECC4");
            exRuntime.printStackTrace();
        }
        catch (Exception e )
        {
            System.out.println("ECC5");
            e.printStackTrace(System.out);
        }
The error is the same, in the line xClose.close(true) office wait 2-3 second,
then goes down, and return the DisposedException...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to