Rants, rambles, news and notes from another geek

Memory Leak When Using XSLT in .NET

Thanks to Frans for pointing this out. When you use an XSLT transform that has embedded JScript, the JScript gets compiled into IL behind the scenes. Apparently this IL will never be unloaded from memory and is not collected by GC.

This is not good. I use JScript or C# in many of my XSLT transforms and now I have to worry about it leaking? Wasn’t GC supposed to save us from this?