Crash when initialized multiple times from a dll RRS feed

  • Question

  • Hello,

    I have to initialize/shutdown Kinect multiple times in my program and the Kinect implementation is in a DLL (I can't do anything out of the dll).

    The problem comes from the fact that this DLL can be detached and reattached (process and thread) multiple times during the execution of the main program. No problem to unit but it crashes ehen it tries to init again after the dll has been reattached (I can't get an instanceId from the previous instance of the dll).

    It breaks at NuiSetDeviceStatusCallback (and if I comment NuiSetDeviceStatusCallback to test, it then breaks at NuiInitialize).

    If anyone had a solution it would be great!


    Wednesday, February 8, 2012 2:22 PM