Can you please tell me one thing: is the next line correct? IL_0068 to IL_00d6 finally handler IL_00d6 to IL_7fffffff
I think that "-1" IL address of finally block and can be the source of the problem. On Sat, Apr 24, 2010 at 7:25 PM, Александр Буряк <[email protected] > wrote: > Yeap, I've updated today morning. > I'll try to make sample assembly with only this function. > > On Sat, Apr 24, 2010 at 7:22 PM, Jb Evain <[email protected]> wrote: > >> Hey Alex, >> >> Have you updated recently ? That looks like something that I fixed in >> e6e1689caaaafb971935711065dee0c6b874d8bf. >> >> If you're not up to date, please update and test, otherwise, yes, I'd >> like to have an assembly to reproduce. Thanks! >> >> On Sat, Apr 24, 2010 at 5:11 PM, Buryak Alexander >> <[email protected]> wrote: >> > Good day. >> > >> > I have another problem with Cecil - it generates broken code. >> > >> > Example... >> > Source code: http://www.everfall.com/paste/id.php?odh4x6hvisyk >> > Original IL generated by MS C# 3.5 SP1 compiler: >> > http://www.everfall.com/paste/id.php?xryv75qqr41a >> > Opened and saved IL by Cecil (no explicit changes made): >> > http://www.everfall.com/paste/id.php?smwthuz4ds0j >> > >> > Generated code execution fails in runtime with error >> > "System.InvalidProgramException: Common Language Runtime detected an >> > invalid program." >> > >> > If you need compiling sample code, tell me - I'll provide you one. >> > >> > Thanks in advance. >> > >> > WBR >> > Alex >> > >> > -- >> > -- >> > mono-cecil >> > >> > Subscription settings: >> http://groups.google.com/group/mono-cecil/subscribe?hl=en >> > >> >> >> >> -- >> Jb Evain <[email protected]> >> >> -- >> -- >> mono-cecil > > > -- -- mono-cecil
