To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103353
                 Issue #|103353
                 Summary|DisposedException when calling dispose on a document
               Component|framework
                 Version|OOO310m14
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mav
             Reported by|jl





------- Additional comments from [email protected] Mon Jul  6 11:39:36 +0000 
2009 -------
The document is created  in Visual Basic using VS2008.

Function createHiddenDocument() As Object
  'Try to create a hidden document
  Dim objPropValue As Object
  objPropValue = objOleTest.Bridge_GetStruct("com.sun.star.beans.PropertyValue")
  'Set the members. If this fails then there is an Error
  objPropValue.Name = "hidden"
  objPropValue.Handle = -1
  objPropValue.Value = True
                
  'create a hidden document
  'Create the Desktop
  Dim objDesktop As Object
  objDesktop = objServiceManager.createInstance("com.sun.star.frame.Desktop")
  'Open a new empty writer document
  Dim args(0) As Object
  args(0) = objPropValue
 createHiddenDocument =
objDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, args)
End Function

Calling dispose on the returned object results in a DisposedException whereas a
close() seems to work.

---------------------------------------------------------------------
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