BUG: GetILFunctionBody returns wrong size


In case you missed it, there was a post on our forum here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1366051&SiteID=1

and a comment on my blog here:

http://blogs.msdn.com/davbr/archive/2007/03/06/creating-an-il-rewriting-profiler.aspx#1881536

about an issue with GetILFunctionBody returning the wrong size.  This is indeed a bug in CLR 2.x, and it is recommended you follow the ECMA spec help you parse the function header to determine the actual size.  More details are in the forum post linked above.  This bug will be fixed in a future release of the CLR.


Comments (3)

  1. Jb Evain says:

    Or you may simply use Mono.Cecil to be sure to read properly assemblies 🙂

  2. Asokan Pichai says:

    Can you give me a pointer to some place where I can get the format of the log file generated by the Profiler?

  3. Asokan Pichai says:

    1. Sorry for leaving a comment at the wrong place.

    2. To answer my own question, there is a word document that gets installed along with the profiler that has a full description.