C++ API v0.7.14

edited February 2017 in C++
  • Fixed a crash from serializing a logger for a readable data signal
  • Fixed bug when initializing the API with a board whose firmware differs from the last seen revision by the API

  • Fixed an incorreect function definintion with the C# wrapper
  • Updated API to support firmware v1.3.2 features

  • Fixed crash caused by serializing/deserializing the MblMwMetaWearBoard object

  • Adds support for the sensor fusion algorithm on the MetaMotion boards
  • Expands the magnetometer API to allow manual sensor configuration


  • A bug fix for the v0.7 branch has been released (v0.7.4).  See OP for details.
  • Hi Eric,

    I made modifications in my C# project (which is basic, it acquires and relays data) to compatible with the new MetaWear.WinRT v0.7.4. While it compiles without problems, an Exception is throwm 'System.AccessViolationException' and the program finishes. As far as I understand my problem in in mbl_mw_datasignal_subscribe(accSignal, accDataHandler); My DeviceSetup.xaml.cs file is in this link: https://github.com/rcassani/MetaWear-UWP-Streamer/blob/mbientlab-master/UWP%20Streamer/DeviceSetup.xaml.cs
    • Was the code working with an earlier version of the api?
    • How long does it take before the program crashes?
    • Which line causes the crash?
  • 1. Yes, it was working, I was using MetaWear.WinRT 0.5.22

    2. The code crashes when I press the Start button in my program

    3. In this line mbl_mw_datasignal_subscribe(accSignal, accDataHandler);
    The details of the System.AccessViolationException are:

    System.AccessViolationException was unhandled
      Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
      Source=MetaWear UWP Streamer
           at MbientLab.MetaWear.Functions.mbl_mw_datasignal_subscribe(IntPtr signal, Fn_IntPtr received_data)
           at MbientLab.MetaWear.Template.DeviceSetup.accStart_Click(Object sender, RoutedEventArgs e)

    Thanks for your help

  • The crash was an issue with the starter project that has been fixed with the commit a08ccda.  Update your fork with the latest changes on the master branch.
  • Thanks, that solved the issue
  • C++ API v0.7.10 has been released, see first post for details.
  • C++ API v0.7.14 is available, see first post for details.
This discussion has been closed.