Thank you, I will not be doing upgrade now due to time restrictions. I managed to resolve the problem by clearing references to ModuleDefinition objects sooner. However, I plan to do upgrade in future because of better memory management new version offers
On Monday, 1 May 2017 12:11:04 UTC-5, Jb Evain wrote: > > Hello Marko, > > Please try upgrading to 0.10-beta5 using the information at > http://cecil.pe > > And let us know if that still happens. > > Thanks, > Jb > > On Mon, May 1, 2017 at 10:05 AM, Marko Vasic <[email protected] > <javascript:>> wrote: > >> I am getting an OutOfMemoryException (stack trace shown below). Do you >> have an idea what might be the cause? >> I am curious when does ModuleDefinition release its resources, and >> whether there is an explicit way to do that, or one has to rely on GC? >> I am using Mono.Cecil version 0.9.6.4 >> >> System.OutOfMemoryException occurred >> HResult=0x8007000E >> Source=Mono.Cecil >> StackTrace: >> at Mono.Cecil.Cil.CodeReader.ReadCode() >> at Mono.Cecil.Cil.CodeReader.ReadFatMethod() >> at Mono.Cecil.Cil.CodeReader.ReadMethodBody() >> at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method) >> at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__33_0(MethodDefinition >> method, MetadataReader reader) >> at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem >> item, Func`3 read) >> at Mono.Cecil.MethodDefinition.get_Body() >> ... >> >> -- >> -- >> -- >> mono-cecil >> --- >> You received this message because you are subscribed to the Google Groups >> "mono-cecil" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
