I am getting an access violation (MATLAB needs to close). The problem seems to be a mex file from the MonkeyLogic daqtoolbox (see error trace).
The error is intermittent. Here is how it happens.
Changes I made:Click run and a userloop file opens. The first thing the userloop does is open a MATLAB gui which asks the experimentor for some parameters. Prior to displaying the gui loads the last saved parameters (call this the "first load"). The user clicks "done" and the app saves the parameters.
After the experiment, after "behaviorsummary" in the monkeylogic source code, I added a line to run a different function. That function loads the parameters that were saved earlier and moves files (call this the "second load").
When the error happensThe first time I run an experiment it all works. The second time I run an experiment I get the access violation when trying to load a file. The access violation occurs at either the "first load" or the "second load". However it ALWAYS occurs on the second or third time I try to run the whole userloop.
I've attached the crash dump file.
Please help me figure out the source of the crash.
Attachments:
open |
download -
matlab_crash_dump_17880-2.txt.txt
(34 KB)