JimHokanson / adinstruments_sdk_matlab

Implementation of AD Instruments SDK in Matlab - i.e. reads LabChart files
MIT License
26 stars 8 forks source link

Improve fix for mex clearing to handle quick loads and unloads #3

Closed JimHokanson closed 9 years ago

JimHokanson commented 10 years ago

The current fix to handling clearing mex and having invalid file handles is to check the time. This is currently using a second timer which means that it if you do: open file clear all (clears mex, calls delete on invalid pointer)

within the same second, you'll crash Matlab.