5 Replies Latest reply on May 26, 2017 2:01 PM by Intel Corporation

    CreateActiveConfiguration() causes System.AccessViolationException

    Jo.L

      Hello all,

       

      I'm just getting started with my first RealSense projects and lately I've been trying to use gesture detection.

      But everytime I try to create a PXCMHandConfiguration object by calling CreateActiveConfiguration(), a System.AccessViolationException occurs.

      Even when I tried to run the Hello World Project provided by Intel it didn't work.

       

      The code usually looks like this:

       

                  private PXCMSenseManager senseManager = PXCMSenseManager.CreateInstance();

                  senseManager.EnableHand();

                  senseManager.Init();

       

                  // Configure the Hand Module

                  private PXCMHandModule hand = senseManager.QueryHand();

                  private PXCMHandConfiguration handConfig = hand.CreateActiveConfiguration();  

                  handConfig.EnableGesture("wave");

                  handConfig.EnableAllAlerts();

                  handConfig.ApplyChanges();

       

       

      Does anyone have a suggestion what I'm doing wrong?

      Thanks a lot