Compiling Error " NullReferenceException "

Dec 14, 2011 at 6:07 PM

Hey Guys, 

I got some trouble while compiling the code. It says NullReferenceException is not used in the user code.

and it marks this line: 

 var head = data.Joints[JointID.Head];

I don't know how to fix that. So could you may help me?

 

my Kinect is working perfect. I can see my skeleton in the demo viewer

Dec 16, 2011 at 10:49 PM

Same problem to me. data is null, because no data is asigned in this code:

SkeletonData data = (from s in skeletonSet.Skeletons                                

where s.TrackingState == SkeletonTrackingState.Tracked                                 

select s).FirstOrDefault();

Coordinator
Dec 22, 2011 at 5:56 AM

Hi guys,

Sorry I forgot to turn on discussion group notifications so I didn't see this thread until now.

If you get the latest version from the source control tab then you should see this issue is already fixed. It needed a simple if statement in there in case there were no skeletons on startup.

Thanks,

Josh

Dec 22, 2011 at 11:07 PM

Hi josh.

First, this is an excelent project, and i'm very excited about it.

I was looking for download this new version, but it's still unavailable.

Thanks for your help.

Coordinator
Dec 23, 2011 at 2:05 AM

Mike,

It is available. Click on the Source Code tab above and then under the Latest Version on the right click Download.

Thanks,

Josh

Feb 27, 2012 at 7:57 PM
Edited Feb 27, 2012 at 7:58 PM

Hi Josh,

I want to know if you have already upgrade your EXCELLENT project to the officiel latest Kinect SDK???? 

And i have the same issue of Mike with your 84915 Release.

Please help me.

Thanks

John

Coordinator
Feb 27, 2012 at 7:59 PM

Hi John,

Actually I'm going to update it if not this week then next week.

Thanks,
Josh

Feb 27, 2012 at 8:05 PM
Edited Feb 27, 2012 at 8:13 PM

Thanks for your quick response. Waiting your update!

 

But if you can send me the 21 Dec. release i will be happy.

John

Coordinator
Feb 28, 2012 at 6:32 AM

I've published v1.1. It is updated for the Kinect SDK 1.0. Download it from the downloads tab.