Main Site Documentation

Error on Display of FEZ Spider


#1

Hi all,

When I run a C# program including “display” module of FEZ Spider, I get this error:
An unhandled exception of type ‘System.NullReferenceException’ occurred in Microsoft.SPOT.TinyCore.dll

How can I solve the problem?


#2

Hard to say without looking at you code and what line of code throws the exception?


#3

I attached the image of my error and the simple code of mine.


#4

I think I just realized the source of this problem! Let me double check something.

Fro now, reset the board, and make sure all is connected and things will work fine after reset I think. As this i working fro others.


#5

Yes, it works. thanks.


#6

Gus, is that just pressing the reset button you mean? I have the same issue but reset does not solve the problem. Any other suggestions?

Using mainboard GHIElectronics-FEZSpider version 1.0
Program Started
Event hooked
#### Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (3) ####
#### Message:
#### Microsoft.SPOT.Application::OnEvent [IP: 0098] ####
#### Microsoft.SPOT.EventSink::ProcessEvent [IP: 0023] ####
#### Microsoft.SPOT.EventSink::EventDispatchCallback [IP: 0014] ####
A first chance exception of type ‘System.NullReferenceException’ occurred in Microsoft.SPOT.TinyCore.dll
An unhandled exception of type ‘System.NullReferenceException’ occurred in Microsoft.SPOT.TinyCore.dll


#7

Updated this link with more info on this issue http://www.tinyclr.com/forum/21/4373

Welcome to the community and the FEZ world!


#8

@ Gus

I read the note you linked to.

FWIW, I have the LCD added in the designer (not later), and I get that null ref exception almost every time I try and debug unless I reset the board.

This is in the larson scanner example I posted.

Figured you might want/need that data point.

Pete


#9

Thanks Pete, we should have a new SDK release shortly to fix all these little issues.


#10

I assume the next SDK release will have Hydra support?


#11

The description with reset does not really match the behavior that I am seeing. No matter if I reset I still continue to get the exceptions. I never get any picture on the screen. I added the display in the designer. All cables are correct as far as I can see.


#12

You can manually enable the display but this is a bit more advanced. See GHI library under LCD configuration.

We will try to post an update ASAP


#13

Im not the best to give advice but I did get these errors all the time.
I found the namespace must be the exactly the same in the program cs and the program generated cs.
You should find both of these titles in solution center.
Also make sure you start project in gadgeteer and connect all the modules yours going to use.
Then you should see “program started” in the output section of you debug screen.

I hope this helps :smiley:


#14

Do you connect all 4 cables?

You get a NullReferenceException if you connect no cable for the touchscreen (Socket T ?)
Whenn you use “Connect all modules” in the designer it also connects the touchscreen in code

I got this Exception yesterday and i need some time to find the problem :slight_smile:


#15

Thank’s for the tips. I checked the namespaces, and gave the cabels one more look but no luck. Think that I will wait for the framework update on this one.


#16

Any news on when that update will be released?


#17

We are busy with new OSH SDK now but gadgeteer is very next. Maybe 2 weeks.


#18

Hi Gus, whats the status on the update?


#19

This week