[Mono-dev] [BUG] Unhandled Exception; object reference not set to an instance of an object....

NetSkay netskay at gmail.com
Fri Apr 17 14:25:37 EDT 2009

hello... im not sure if this is code error or not... i run mono 2.0 on ubuntu
itrepid ibex from the repositories
the following code is in C# and i wrote it in mono develop... when i compile
and run the code from the IDE, i get the following error

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at ChaTTY.ChaTTYClient.Run () [0x00015] in
  at ChaTTY.ChaTTY.Main () [0x00006] in

but when i run it under windows, without mono being installed, it works
fine... so im not sure whats going on; here is the code snippit

while (Running) {
                string input=Console.ReadLine();
                if (input.StartsWith("/")) {
                    // this might be a command
                    if (ParseCommand(input)) {
                        // command was executed successfully
                    } else {
                } else {
				//if (ServerConn.Connected == false){Console.WriteLine("Connection
Closed!"); Running=false;}

im not sure if this has been fixed in newer versions of mono or not, and im
not sure if im doing anything wrong; i get this trace error output not from
the error list tab on the ide, but from the application output window...
View this message in context: http://www.nabble.com/-BUG--Unhandled-Exception--object-reference-not-set-to-an-instance-of-an-object....-tp23103259p23103259.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list