ilovekinect ilovekinect

Niner since 2012


  • Skeletal Tracking Fundamentals

    Hi Dan..

    When i try to run my code, which basically tracks my right hand, and ellipses appear on my shoulder, hand and elbow joints, i get an error like this, while running:

    "NullReferenceException was unhandled". , on this line of code:

    Skeleton skeleton= (from s in allSkeletons where s.TrackingState == SkeletonTrackingState.Tracked select s).FirstOrDefault(); 

    The Bold part on the above line is where the error is highlighted in my code.

    Can you help me with this, coz i'm kinda stuck with this for days now..

    Thanks in Advance..