Welcome to MSDN Blogs Sign in | Join | Help

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.

Published Thursday, May 22, 2008 4:26 PM by davbr

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: BUG: GetILFunctionBody returns wrong size

Friday, May 23, 2008 11:36 AM by Jb Evain

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

# CLRProfiler log file format

Wednesday, May 28, 2008 11:08 AM by Asokan Pichai

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

# re: log format

Thursday, May 29, 2008 7:09 AM by Asokan Pichai

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.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker