3dtof / voxelsdk

VoxelSDK - an SDK supporting TI's 3D Time of Flight cameras
BSD 3-Clause "New" or "Revised" License
108 stars 71 forks source link

Access violation when start the camera #173

Open wahyurahmaniar opened 5 years ago

wahyurahmaniar commented 5 years ago

I follow this issue for the register callback: https://github.com/3dtof/voxelsdk/issues/152

I use Visual Studio 2017 C++ and OPT8241 Sensor.

I get this error immediately after calling: if (depthCameras->start())

Unhandled exception at 0x00007FFAA4B5963D (voxel.dll) in testvideo.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFE.

The ToF camera is definitely located and is initialized properly.

Thank you.

cn-newit commented 5 years ago

I've had the same mistake,And the problem is that my program is release,but voxelsdk lib is debug.When I changed my program to the debug,and it work.