[Mono-bugs] [Bug 58244][Wis] Changed - error CS1509: Referenced file '...' is not an assembly; use '/addmodule' option instead
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 17 Apr 2005 15:15:51 -0400 (EDT)
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 diltonm@mccomsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58244
--- shadow/58244 2005-04-17 13:34:00.000000000 -0400
+++ shadow/58244.tmp.4322 2005-04-17 15:15:51.000000000 -0400
@@ -207,6 +207,28 @@
We would have to make the runtime give some sort of useful error
message. For now, we could change the assert method to say "is this a
module you are trying to load as an assembly?" or something. Idealy,
we want to change loading errors into exceptions that mcs could then
transform into the proper error message. However, that is a much
larger task.
+
+------- Additional Comments From diltonm@McCOMSoft.com 2005-04-17 15:15 -------
+On Windows on 1.1.4 (there doesn't seem to be a 1.1.6 for Windows)
+it doesn't crash now, it just prints this exception trace:
+
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to an instance of an object
+in (unmanaged) 77C478C0
+in <0x00004> (wrapper managed-to-native)
+System.Reflection.Assembly:LoadFrom (string)
+in <0x001ff> Mono.CSharp.Driver:LoadAssembly (string,bool)
+in <0x00077> Mono.CSharp.Driver:LoadReferences ()
+in <0x0062a> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000f> Mono.CSharp.Driver:Main (string[])
+
+On Linux on 1.1.6 it does this:
+
+** ERROR **: file metadata.c: line 916 (mono_metadata_decode_row):
+assertion failed: (res_size == count)
+aborting...
+Aborted
+