[Mono-bugs] [Bug 419966] New: Cannot copy instructions from one assembly to another

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 25 04:15:15 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=419966


           Summary: Cannot copy instructions from one assembly to another
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Cecil
        AssignedTo: jbevain at novell.com
        ReportedBy: high6 at live.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
When I copy instructions from one assembly to another and insert them with cil
worker it breaks everything after where I inserted them.

Steps to reproduce the problem:
Load 2 assemblies and copy insert instructions from one assembly into another's
method.


Actual Results:
    L_0000: ldarg.0 
    L_0001: ldstr "System.Security.Cryptography.MD5"
    L_0006: call 
//Just cuts off their
Expected Results:
    L_0000: ldarg.0 
    L_0001: ldstr "System.Security.Cryptography.MD5"
    //Some opcodes here (not call)

How often does this happen? 
Every time.

Additional Information:

I am not sure if this is a bug or if cecil just doesn't support it.

If cecil doesn't support it, would you guys add it or should I start looking at
a work around?

Also the method's body looks fine in cecil before saving.(What it should be)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list