Re: [Ironpython-users] Delete a large object in ironpython, and releasing the memory?

2015-12-22 Thread Djordje Spasic via Ironpython-users
Thank you Markus. That was helpful. Kind regards, Djordje Spasic From: Markus Schaber To: Djordje Spasic Cc: Discussion of IronPython Sent: Tuesday, December 22, 2015 11:04 AM Subject: RE: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? #yiv952

Re: [Ironpython-users] Delete a large object in ironpython, and releasing the memory?

2015-12-22 Thread Markus Schaber
Hi, IronPython runs on .NET which has a very different garbage collector than the one used in cPython. cPython uses reference counting, and a synchronous collector which collects cyclic garbage. Thus, objects which are not parts of cycles are guaranteed to be collected in the very moment when

Re: [Ironpython-users] Creating public IronPython API

2015-12-22 Thread Markus Schaber
Hi, Benedict, We’re using a third approach when embedding IronPython in CODESYS: We’re creating our own Module using ScriptEngine.CreateModule(), and then providing our objects using ScriptScope.SetVariable(). Constants, instances and delegates are provided directly, classes/types are passed th