How can we help you today? How can we help you today?

CppCliLanguage Redgate Webpage on Expand Methods

When using the newest version of the Net Reflector code when I've installed the CPPCliLanguage .DLL add-in and go to expand methods after I dissasemble the dissasembly window brings up the homepage for redgate. This has to be some sorta bug right? Is there a fix to it? I've been able to reproduce it again and again without fail.

Install fresh Reflector
Install CPPCLiLanguage DLL file in the same directory
launch Reflector
Add Add-in
Go to System::Windows::Forms::ComboBox (or any other one)
Dissassemble
Expand Methods
ttanner
0

Comments

4 comments

  • Clive Tong
    There is a bug in the addin that you have installed. You could report it to the addin author.

    It is throwing an exception in the code to write an ObjectCreateExpression where the addin uses code like the following:

    private void WriteObjectCreateExpression(IObjectCreateExpression iObjectCreateExpression)
    {
    ITypeReference reference = iObjectCreateExpression.get_Constructor().get_DeclaringType() as ITypeReference;

    In the example you gave, the create expression is new RECT() and the constructor property is null leading to an exception being thrown. The other language generators check for the Constructor property being null and use WriteType in this case.

    Reflector 5.1.6 used to bring up a dialog to report the exception - 6.0 seems to be redirecting to the Red Gate web page. I'll investigate further why this is.
    Clive Tong
    0
  • ttanner
    Thank you for your quick and nice reply. Is there any chance of using a older version of reflector? Mine always deletes itself?
    ttanner
    0
  • Bart Read
    Hi there,


    I'm afraid that, due to .NET Reflector's popularity, we don't distribute older versions because we are unable to support them. As Clive suggests, your best bet is to try to contact the author of the add-in. Contact details are available on this page:

    http://www.sandpapersoftware.com/Main/Reflector.html

    It is odd that it opens the Red Gate site in that case though, so we'll try to figure out why and will aim to get a fix in the next release of .NET Reflector.

    We're adding support for the C# 4.0 and VB 10 language extensions in .NET 4 at the moment, so we'd hope to have something out in April or possibly May.


    Thanks,


    Bart
    Bart Read
    0
  • Bart Read
    Hi again,


    You should find that this bug is fixed in the .NET Reflector 6.1 release. Please see this post for more information:

    http://www.red-gate.com/MessageBoard/viewtopic.php?t=10577

    Hope that helps.


    Thanks,


    Bart
    Bart Read
    0

Add comment

Please sign in to leave a comment.