Hey,

On 11/18/08, Knight Commander <[EMAIL PROTECTED]> wrote:
> I've create an application which injects some code in each method which it
> finds in a give assembly.
> everything works find, but a single method, behaves in a way that CLR throws
> "invalid program exception"
>  as i investigated by comparing my generated code with what must be
> generated, there were no difference but the max stack which has grown from 4
> to 130!
> this increase in maxStack is not normal, max stack of any other method as
> increased by one!
>
> any suggestions?

Are you using Cecil from svn head? If not, check with that.

If you do, I'll need a way to reproduce the issue to investigate. But
.maxstack is not supposed to be really used by the CLR. So it could be
something else.

What if you dissassemble using ildasm/change the maxstack/re-assemble
with ilasm, does it work? If not, it could be Cecil writing a wrong
assembly, or you generating wrong code.

-- 
Jb Evain  <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to