[Ironpython-users] Memory Leak and Lightweight Scopes

Dino Viehland dinov at microsoft.com
Wed Nov 16 18:54:50 CET 2011


settrace() debugging should be perfectly fine, it's only the .NET debugging which causes the memory leaks.  Can you open a bug and attach the repro? The repro's simple enough, I might be able to track down the leak fairly quickly.

-----Original Message-----
From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Markus Schaber
Sent: Wednesday, November 16, 2011 1:40 AM
To: Markus Schaber; ironpython-users at python.org
Subject: Re: [Ironpython-users] Memory Leak and Lightweight Scopes

Hi, Dino,

Von: Markus Schaber
> Von: Dino Viehland [mailto:dinov at microsoft.com]
>> Also make sure that you don't have debugging enabled as that forces to create uncollectible code too and probably overrides the light weight scopes option.
> I'll first try to check that one. The reason is that we are using settrace() unconditionally, currently.

Removing the settrace() call and all other language options except LightweightScopes actually reduces the problem by an enormous amount.

I guess what's left is the generated code in the dynamic assemblies, and to get rid of that leak, we will have to use AppDomains, right?

I also wanted to try the interpreted mode, but found a comment that this mode is ignored. Is that correct?


Thanks,
Markus Schaber
--
___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50

Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 _______________________________________________
Ironpython-users mailing list
Ironpython-users at python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Mit freundlichen Grüßen

Markus Schaber
--
___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Entwicklung
Memminger Str. 151 | 87439 Kempten | Tel. +49-831-54031-0 | Fax +49-831-54031-50

Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys Internet-Forum: http://forum.3s-software.com

Geschäftsführer: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Handelsregister: Kempten HRB 6186 | USt-IDNr.: DE 167014915

_______________________________________________
Ironpython-users mailing list
Ironpython-users at python.org
http://mail.python.org/mailman/listinfo/ironpython-users



More information about the Ironpython-users mailing list