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


           Summary: AppDomain::AssemblyLoad does not fire when an assembly
                    with same name is loaded
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


AppDomain::AssemblyLoad does not fire when an assembly with same name is loaded
from different location.

This program prints "Loaded" twice on .NET and only once on Mono

using System;
using System.Reflection;

class C
{
        static void OnAssemblyLoad (object sender, AssemblyLoadEventArgs args)
        {
                Console.WriteLine ("Loaded");
        }

        public static void Main (string[] args)
        {
                AppDomain.CurrentDomain.AssemblyLoad += new
AssemblyLoadEventHandler (OnAssemblyLoad);
                foreach (string s in args)
                        Assembly.LoadFrom (s);
        }
}

Executed as: app.exe f1\0.dll 0.dll where 0.dll are different dlls with same
name.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to