title: Why is the skeleton from SkeletonFrame empty (Kinect)?
body: <p>So I wrote this eventhandler which I call out on <code>SkeletonFrameReady</code>.</p>
  
  <pre><code>sensor.SkeletonFrameReady += InitializeHandler;
  sensor.SkeletonStream.Enable();
  </code></pre>
  
  <p>The idea is that it initializes the sensor in a way that it calculates the averages of the joints' coordinates. However the <code>initSkeleton</code> remains <code>null</code> so no vectors are added. Why is this happening?</p>
  
  <pre><code>private void InitializeHandler(object sender, SkeletonFrameReadyEventArgs e)
          {
              if (frame &lt;= 10)
              {
                  frame += 1;
                  using (SkeletonFrame initSkeletonFrame = e.OpenSkeletonFrame())
                  {
                      if (this.initSkeletons == null)
                      {
                          this.initSkeletons = new Skeleton[initSkeletonFrame.SkeletonArrayLength];
                      }
                      initSkeletonFrame.CopySkeletonDataTo(initSkeletons);
                      Skeleton initSkeleton = this.initSkeletons.Where(s =&gt; s.TrackingState == SkeletonTrackingState.Tracked).FirstOrDefault();
                      if (initSkeleton != null)
                      {
                          foreach (Joint j in initSkeleton.Joints)
                          {
                              Vector3D tmp = new Vector3D(j.Position.X, j.Position.Y, j.Position.Z);
                              vectors.Add(tmp);
                              Console.Write(vectors.Count);
                          }
                      }
                  }
              }
          // ... calculations
          }
  </code></pre>