incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 119281] New: Com (ActiveX) objects created using CreateObject from OOBasic are not removed from memory
Date Tue, 24 Apr 2012 19:58:15 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119281

             Bug #: 119281
        Issue Type: DEFECT
           Summary: Com (ActiveX) objects created using CreateObject from
                    OOBasic are not removed from memory
    Classification: Code
           Product: api
           Version: OOo 3.3
          Platform: PC
        OS/Version: Windows, all
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
        AssignedTo: ooo-issues@incubator.apache.org
        ReportedBy: nasrallah@novovision.com


When creating an instance of a com object (ActiveX object) of a dll Open Office
keeps the dll locked in memory until all open openoffice instances are closed.
The garbage collector of OOo Basic is not cleaning the references properly.


to reproduce (sample using windows' scrrun.dll )

1- open two open office writer documents (I'm gonna call them odt1, odt2)
2- add a macro to odt1 and add the piece of code below

Sub Main
 dim fso 
 fso = CreateObject("Scripting.FileSystemObject")
 if fso.fileexists("C:\a.odt") then
     msgbox ("File C:\a.od exists")
 else
     msgbox ("File C:\a.od does not exist")
 end if

 fso = nothing
End Sub


3- run the Main sub
4- close odt1
5- try to rename of remove the scrrun.dll (C:\windows\system32\) , windows
doesnt let you. If you use unlocker (http://www.emptyloop.com/unlocker/) it
shows soffice.bin locking the file.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message