bug in C++ layer (null pointer)
To
reproduce, compile the Metwear-CppAPI with debug enabled (Compiled
as UWP library and added a reference to it from the C++ lib).
Then use the
CS template to log accel + gyro data (100 Hz).
We also
have an GPIO signal going in parallel too that we use to stop logging.
As you can see in the
screenshot, it crashes often in the C++ layer with a null pointer exception at
state->create_next(..)
This discussion has been closed.
Comments
managedArrayandresponsevariables at these two lines:setup_logging_signalsdoes not wait for bothmbl_mw_datasignal_logcalls to finish. This is probably why your app is crashing assetup_logging_signalsexits before the log calls finish and both thelogGyroFnandlogAccFncallback functions are garbage collected resulting in bogus memory addresses.mbl_mw_metawearboard_tear_down.