App crash when unplug Realsense device

Dear supporter,
When i try to use hand tracking demo from Nuitrack. It work normally until i unplug Realsense device, after few seconds app cash. You can see event log of windows like below:
Faulting application name: Unity.exe, version: 2018.2.10.19109, time stamp: 0x5ba37ac2
Faulting module name: NuitrackModule.dll, version: 0.0.0.0, time stamp: 0xabc0abb8
Exception code: 0x40000015
Fault offset: 0x0000000000259cba
Faulting process ID: 0x2f00
Faulting application start time: 0x01d460516267be8f
Faulting application path: C:\Program Files\Unity\Editor\Unity.exe
Faulting module path: C:\Users\anh.nguyenphamhung\Documents\Work\x64\nuitrack-win64(1)\nuitrack\middleware\NuitrackModule.dll
Report ID: b656073e-beb0-4699-9268-7f7e65cffa2b
Faulting package full name:
Faulting package-relative application ID:

FWIW - there is currently no real connection/disconnect tracking inside nuitrack.

Westa

Dear Westa,
Is there any solution to prevent app crash when nuitrack can not connect camera device?

We just warp the Nuitrack Init and Update functions in a try catch…e.g.

try{
     nuitrack.Nuitrack.Update();
}catch (Exception e){
     Debug.Log("Nuitrack Exeption : " + e);
}

Hope this helps

In our source code, we try catch like your suggestion but app still crash when i unplug camera device.