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
managedArray
andresponse
variables at these two lines:setup_logging_signals
does not wait for bothmbl_mw_datasignal_log
calls to finish. This is probably why your app is crashing assetup_logging_signals
exits before the log calls finish and both thelogGyroFn
andlogAccFn
callback functions are garbage collected resulting in bogus memory addresses.mbl_mw_metawearboard_tear_down
.