System.NullReferenceException

Posted by jmls on 29-Jan-2009 14:25

I get this error

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

when processing this line (**):

the stack trace gives line 655 (which is the line that the END CASE statement is on).

If I comment out the system.drawing.xxx line then the program works just fine.

The wrinkle is that the same program works fine for me in development and runtime on my machine (Vista), but not on the production machine (Windows 2003 terminal server).

The worrying thing is that this code worked just fine all week until today when it was recompiled. We have rebuilt the code from subversion to ensure that there was no "adjustments" and recompiled to no avail.

Anyone got any clues ?

All Replies

Posted by rbf on 30-Jan-2009 04:32

There are problems with the compile order of classes that will be fixed in SP1.

Your code probably works fine uncompiled on the production machine but you probably don't have a compiler there. If this is indeed the problem that I am refering to above, you could try to figure out how to manually compile your stuff in the right order...

BTW I am glad we decided to wait at least for SP1 before going in production

Posted by jmls on 30-Jan-2009 04:35

thanks Peter

Any idea when SP1 is on the way ?

Posted by rbf on 30-Jan-2009 04:45

March 2009.

Posted by jmls on 30-Jan-2009 04:46

bugger. Oh well, we'll have to use the workarounds

Posted by rbf on 30-Jan-2009 04:50

Let us know what workaround works for you.

This thread is closed