[Mono-dev] [BUG] Unhandled Exception; object reference not set to an instance of an object....
Robert Jordan
robertj at gmx.net
Sun Apr 19 06:41:13 EDT 2009
NetSkay wrote:
> 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
...
>
> 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("/")) {
MD does not support terminal input, thus your "input" string will
be "null".
You must run apps depending on Console.Read* outside MD.
Robert
More information about the Mono-devel-list
mailing list