[IronPython] Embedding IronPython

Christian Schmidt christian2.schmidt at gmx.de
Wed Dec 31 02:50:16 PST 2008

Hi Josh,

>> CompiledCode cc = src.Compile();

This will leak memory. So you will run out of memory after a while (in 
our case after 100'000 compiles on x86).

>> Is this going to work or will I run into threading problems?  In other 
>> words, is the ScriptEngine thread-safe?  Will it serialize all of my 
>> cc.Execute() calls?  Any other insight into its behavior in this 
>> regard would be appreciated.

I think globals and imports will be shared. So modifying them might give 
unexpected results.


More information about the Users mailing list