PDA

View Full Version : Mono Error - Null Reference



sandivilli
October 27th, 2009, 07:59 PM
Hi, i`ve tried to compile a code with gmcsc/csc (Mono), and it compiled ok.
But when i execute, the bin file it gives me:

A null reference or invalid value was found [GDI+ status: InvalidParameter]

... anyone have a clue?

Thanks

PaulM1985
October 27th, 2009, 09:16 PM
I can't really say too accurately without looking at the code, but I am guessing that you are trying to access something that is not initialised.

Is there anything like:

MyClass aThing;

aThing.doMethod();


without an
aThing = new MyClass();
between?

Could you post some code?

Paul

sandivilli
October 30th, 2009, 09:51 PM
Hi, the code is here:

http://zetcode.com/tutorials/monowinformstutorial/snake/

i guess, its right.

Thanks