Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

C++ API v0.7.4

edited November 2016 in C++
  • 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:
    • 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
Sign In or Register to comment.