To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73457
                 Issue #|73457
                 Summary|Memory Leak in Basic Argument Handling
               Component|api
                 Version|OOo 2.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P4
            Subcomponent|code
             Assigned to|jsc
             Reported by|terrye





------- Additional comments from [EMAIL PROTECTED] Sun Jan 14 05:46:06 -0800 
2007 -------
Every basic subroutine call leaks approximately 216+24N bytes of memory where N
is the number of arguments in the call *IF* N>0.  The following code fragment
demonstrates this issue.
 
Sub Main
for i = 1 to 100000: X(a,b): Next i
End Sub
Sub X(n,m)
'X=0 or even a=X
End Sub

There is no leak if the call is a function call (which sets the return value or
there are no arguments.  This happens on both the Linux and Windows builds.
2.0.3, 2.0.4 and 2.1 

The issue seems to be related to referencing PARAM 0 within the subroutine /
function if the parameter array has been contructed following an ARGC
instruction.  **Any** PARAM 0 instruction executed within the routine (even in
the context of an RVALUE) triggers correct garbage collection of the argument
array following the LEAVE.

This memory is not reclaimed on document closure.  In the case of Windows you
need to exit entirely and disable quickstarter.

I'll try to track it down a bit further, but this will need stepping through
with the debugger.  I've been aware of a bad memory leak that was occuring basic
macro execution, and this will be an important one to fix.

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