Exception received is
Using mainboard GHI Electronics FEZSpider version 1.0
Program Started
The thread ‘’ (0x3) has exited with code 0 (0x0).
#### Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (4) ####
Etc:
I receive this exception if I touch the LCD screen and assume that it is caused by a unhandled ‘Touch event’.
I have a cable connected between LCD socket T and to Socket 10 (A,I,T,X).
I am NOT using Touch or have I implemented any code to handle a touch event.
My question is, what are the ‘official rules’ when using the T35 with regard to Touch.
Just do not connect the cable?
Handle the event?
I only ask because I have never seen this exception before. Sometimes I have the T cable connected and sometimes not.
If it matters, I am now using a Module Connection Power between the LCD and Spider.
Looking at the source code for the T35 driver, there are two constructors; one with touch and one without. Try not connecting the T cable in the designer.
[quote]Try not connecting the T cable in the designer.
I do not have the issue then as I would expect. However, I would still wonder why it breaks the application.[/quote]
I just tried connecting a T35 module to a XXX mainboard, and removed the T cable from the designer. I had no problem with touch and no event registration.
I guess the thought was if you included the T cable then you wanted touch event. If you forgot to register, an exception reminds you to register.
But, still not good programming practice. Should not throw an exception if not registered for touch.