Back to the main page.
Bug 460 - fclose(fid) missing in read_micromed_trc.m
Status | CLOSED FIXED |
Reported | 2011-01-31 10:45:00 +0100 |
Modified | 2011-03-31 14:13:56 +0200 |
Product: | FieldTrip |
Component: | fileio |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 normal |
Assigned to: | Cristiano Micheli |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
- 2011-01-31 10:45:11 +0100
When running ft_preprocessing, Matlab has to open my TRC file many times, but as there isn't fclose(fid) at the end of the read_micromed_trc.m file, it stops at some point (??? Error using ==> read_micromed_trc at 12 Can't open *.trc file) and cannot open my file anymore. Adding fclose(fid) at the end of the file fixes the bug.