> Hi Evain > > I get the following error on running PEVerify.exe on the resulting > assembly. > > [IL]: Error: [S:\Temp\Trash > \WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\out > \WindowsFormsApplication1.exe : WindowsFormsApplication1.Form1::Search] > [mdToken=0x600000c][offset 0x00000 > 048] Stack overflow. > > Any suggestions? >
OK. Further to my own investigations :) I assumed that it had to do with maxstack. So I dumped the IL of of the assembly with broken method, edited the maxstack of the offending method to 32 (I just plucked this number out of air), and then ran ilasm on the IL file and ran the resulting assembly. This time the CLR did not have any issues. I am reporting to know if the problem is in my way of using cecil or in cecil itself (in calculation of maxstack). Regards Vijay -- -- mono-cecil
