[Mono-bugs] [Bug 52723][Wis] New - Custom trace listener requires ctor not required by Microsoft runtime

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 9 Jan 2004 17:00:02 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by tcabanski@oai.cc.

http://bugzilla.ximian.com/show_bug.cgi?id=52723

--- shadow/52723	2004-01-09 17:00:02.000000000 -0500
+++ shadow/52723.tmp.16997	2004-01-09 17:00:02.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 52723
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Mono 0.29
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tcabanski@oai.cc               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Custom trace listener requires ctor not required by Microsoft runtime
+
+Microsoft runtime only requires a single constructor for custom trace 
+listener classes:
+
+ctor(string name)
+
+If the add element in the config file specifies initializeData, it is 
+passed as name.  I understand this is kind of strange but I have verified 
+this behavior on both .NET 1.0 and .NET 1.1.
+
+Mono, on the other hand, calls a different constructor if the 
+initializeData element is present in the Add configuration element:
+
+ctor(string initializeData, string name)
+
+I can work around this quite easily by adding the extra constructor but 
+neither Microsoft's documentation nor its implementation works this way.