ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> incrtcl-users
incrtcl-users
[Incrtcl-users] ::itcl::delete class leaks?
by Tyukodi Zoltán other posts by this author
May 30 2006 12:38AM messages near this date
Re: [Incrtcl-users] ::itcl::delete class leaks? | RE: [Incrtcl-users] ::itcl::delete class leaks?
Hello,

 

can anybody tell me why the following script leaks memory intensively?

 

 

package require Itcl

 

while { 1 } {

 

      ::itcl::class LeakClass {

            proc leakProc {} {

                  set n 1

            }

      }

 

      LeakClass::leakProc

 

      ::itcl::delete class "LeakClass"

}

 

 

There is no leak, if I remove the call of the procedure or the set n 1 line.

I know, this is a stupid algorithm but I have to do a similar one.
Thread:
Tyukodi Zoltán
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved