Partager via


BUG: GetILFunctionBody returns wrong size

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

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

and a comment on my blog here:

https://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

  • Anonymous
    May 23, 2008
    Or you may simply use Mono.Cecil to be sure to read properly assemblies :)

  • Anonymous
    May 28, 2008
    Can you give me a pointer to some place where I can get the format of the log file generated by the Profiler?

  • Anonymous
    May 28, 2008

  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.