mail-archives/mono-bugs/2004-June/016845.html

142 строки
5.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 59668][Maj] New - Mono runtime fails to find object constructor (argument number disagreement)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016844.html">
<LINK REL="Next" HREF="016846.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 59668][Maj] New - Mono runtime fails to find object constructor (argument number disagreement)
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 59668][Maj] New - Mono runtime fails to find object constructor (argument number disagreement)">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Sun, 6 Jun 2004 14:58:47 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="016844.html">[Mono-bugs] [Bug 59653][Blo] Changed - Beta 2 Chunked-Encoding critical bug.
</A></li>
<LI> Next message: <A HREF="016846.html">[Mono-bugs] [Bug 58244][Cri] Changed - mcs crashes in http://primates.ximian.com/~gonzalo/tmp/mono-0.91-win32-3.exe
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16845">[ date ]</a>
<a href="thread.html#16845">[ thread ]</a>
<a href="subject.html#16845">[ subject ]</a>
<a href="author.html#16845">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:paul@seabeck-enterprises.com.">paul@seabeck-enterprises.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59668">http://bugzilla.ximian.com/show_bug.cgi?id=59668</A>
--- shadow/59668 2004-06-06 14:58:47.000000000 -0400
+++ shadow/59668.tmp.30250 2004-06-06 14:58:47.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 59668
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details: XP Home SP1
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:paul@seabeck-enterprises.com">paul@seabeck-enterprises.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono runtime fails to find object constructor (argument number disagreement)
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+I have created a C# that includes a multithreaded client and
+multithreaded server. I'm using Mono Beta2 for windows, nothing else is
+required. I also have created two test apps called &quot;TestClient.exe&quot;
+and &quot;TestServer.exe&quot; which simply instantiates a number of clients and A
+server respectively. All are being built in debug mode from
+VisualStudio.NET. I simply copy the dll (Class Library) and the two test
+apps to the same directory (..mono/bin) and invoke mono on them. All was
+fine until my latest build (which did NOT change the signature of the
+Constructors) when Mono decided to spit the following out at me:
+
+Compat mode: the request from C:\Program Files\Mono-Beta2
+\lib\ManagedClasses.dll to load System was remapped (<A HREF="http://www.go-">http://www.go-</A>
+mono.com/remap.html)
+
+** (TestServer.exe:27424): WARNING **: Missing method .ctor in assembly
+C:\Program Files\Mono-Beta2\bin\TestServer.exe typeref index 16
+
+Unhandled Exception: System.MissingMethodException: Cannot find the
+requested method.
+
+Everything still runs fine under the Microsoft Framework. Apparently,
+Mono doesn't agree with the number of parameters in the constructor:
+
+(Class Library)
+public Server(string name, int scope, bool useThreads)
+...
+(TestServer.exe)
+Server s = new Server(&quot;TestServer&quot;, 1, true);
+
+
+Even if I try to compile it with mcs.exe instead of VisualStudio.Net I
+get this:
+
+C:\Program Files\Mono-Beta2\bin&gt;mcs TestServer.cs -r ManagedClasses.dll
+TestServer.cs(17) error CS1501: No overload for
+method 'ManagedClasses.Server' takes `3' arguments
+TestServer.cs(17) error CS1501: New invocation: Can not find a
+constructor in `ManagedClasses.Server' for this argument list
+Compilation failed: 2 error(s), 0 warnings
+
+
+
+Steps to reproduce the problem:
+1. Described above
+2.
+3.
+
+Actual Results:
+Code fails both compilation and runtime.
+
+Expected Results:
+Code compiles and executes normally.
+
+How often does this happen?
+Every time now.
+
+Additional Information:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016844.html">[Mono-bugs] [Bug 59653][Blo] Changed - Beta 2 Chunked-Encoding critical bug.
</A></li>
<LI> Next message: <A HREF="016846.html">[Mono-bugs] [Bug 58244][Cri] Changed - mcs crashes in http://primates.ximian.com/~gonzalo/tmp/mono-0.91-win32-3.exe
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16845">[ date ]</a>
<a href="thread.html#16845">[ thread ]</a>
<a href="subject.html#16845">[ subject ]</a>
<a href="author.html#16845">[ author ]</a>
</LI>
</UL>
</body></html>