none
KinectSensor.Open() System.InvalidOperationException RRS feed

  • Question

  • I am getting error "method was called at unexpected time" while running Windows 8.1 modern application on Surface Pro 2. 

    Here is the complete error message:

    "A method was called at an unexpected time (Exception from HRESULT :0x8000000E"

    Innerexception: null

    StackTrace : at WindowsPreview.Kinect.KinectSensor.Open()

    at APP_NAME.Kinect.KinectInteraction..ctor() 

    at APP_NAME.App..ctor()

    NOTE: I am calling KinectInteraction class from Application.xaml.cs 

    Here is what I have tried:

    - Kinect SDK samples are working fine. 

    - This application was running fine before few updates got installed. 

    - I am using PublicPreview1409 SDK.

    - I have tried using 1409 SDK as well.

    Any pointers on this would be really helpful.


    -Samarth http://shahsamarth.wordpress.com

    Tuesday, December 30, 2014 11:42 AM

All replies

  • Are you using the correct Windows Store extension in the project? Have you targeted x86/x64 in your project settings?

    http://msdn.microsoft.com/en-us/library/dn799310.aspx

    How does your initialization different than what is provided in the samples? You cannot call that API directly, how did you create an instance of the sensor to call the Open api? The SDK is now a final release, you should not be using PublicPreview versions.


    Carmine Sirignano - MSFT

    Saturday, January 3, 2015 12:44 AM