Scroll sample does not run

Forum for C#/Windows development

Scroll sample does not run

Postby DougNS » 11 Mar 2015, 12:56

I downloaded the C# sample (https://github.com/EyeTribe/tet-csharp-samples) and tried to run the Scroll sample (Set as StartUp Project). It immediately crashes with the following exception on line 333 of MainWindow.xaml.cs:

An exception of type 'System.NullReferenceException' occurred in Scroll.exe but was not handled in user code
Additional information: Object reference not set to an instance of an object.

It tries to use the scrollTimer variable, but this has not been instantiated yet. Can you please fix and update the sample?

Doug Girard
Nirodha Software
DougNS
 
Posts: 5
Joined: 11 Mar 2015, 10:43

Re: Scroll sample does not run

Postby Martin » 11 Mar 2015, 13:59

Hi Doug,

Just ran it off Github clone and you are right. If a connection cannot be established it will return/exit the constructor before the timer has been created. Then when the window is closing it tries to stop the uninitialized timer. Henrik has been assigned Case 5878 and should resolve it asap.

Thanks for letting us know.
Martin
 
Posts: 567
Joined: 29 Oct 2013, 15:20


Return to C#