[Mono-devel-list] Omnipresent Missing Class

Samuel Kaufman emrysk at gmail.com
Fri Jun 24 03:50:45 EDT 2005


When compile my program and library with GMCS and try and run it, I
get a nasty error.  Here is the relevant output.

(from make)
    gmcs -target:library -out:../bin/Navajo.dll -debug CSharp/*.cs *.cs
make[2]: Leaving directory `/home/emrys/Navajo/Lib'
    gmcs -r:../bin/Navajo.dll -out:../bin/Navajo.exe -debug *.cs
make[1]: Leaving directory `/home/emrys/Navajo/Program'

emrys at cloudy:~/Navajo/bin$ mono Navajo.exe

** (Navajo.exe:9390): WARNING **: The class Navajo.OutputType could
not be loaded, used in /home/emrys/Navajo/bin/Navajo.exe (token
0x0100000a)

Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object


It appeared when I first upgraded from 1.1.7 to 1.1.8.  I thought this
was an odd error, and so I tried 1.1.8.1.  It remained.  Since then
I've tried Meebey's 1.1.8 and 1.1.8.1 DEBs, compiling 1.1.8 and
1.1.8.1 from source, using the 1.1.7 DEB from hoary-backports, and
reverting to 1.1.7 from source (which is what I was working quite
happily with before).  The error remains.  The --debug argument makes
no difference.  Can someone give me a clue as to why?

Just in case it helps any, I get something different with --aot.  And,
also, with --aot, mono does not return control to the terminal.  I
have to Ctrl+C manually.

emrys at cloudy:~/Navajo/bin$ mono --aot Navajo.exe
Mono Ahead of Time compiler - compiling assembly
/home/emrys/Navajo/bin/Navajo.exe

** (Navajo.exe:9505): WARNING **: The class Navajo.SentBy could not be
loaded, used in /home/emrys/Navajo/bin/Navajo.exe (token 0x01000001)

** (Navajo.exe:9505): WARNING **: The class Navajo.GeneratorAttribute
could not be loaded, used in /home/emrys/Navajo/bin/Navajo.exe (token
0x01000006)

** (Navajo.exe:9505): WARNING **: The class Navajo.IGenerator could
not be loaded, used in /home/emrys/Navajo/bin/Navajo.exe (token
0x0100000c)

Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object


Thanks in advance.  I'd really appreciate any help.  I only have one
computer and this has impeded development of my pet project for a good
week.  (Installing Windows and the Visual Studio beta is starting to
look attractive... egh...)



More information about the Mono-devel-list mailing list