mollynnobrien / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

Multiple files opening using btkReadAcquisition: segmentation fault #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Opening several files in a single script leads to a segmentation fault in 
Matlab.

I am aware that similar issues were reported before 
(https://code.google.com/p/b-tk/issues/detail?id=72) and were solved using the 
'btkDeleteAcquisition' function. However it doesn't seem to solve the problem 
in my case even for the simple script that follows:

for i =1:100
    acquisition = btkReadAcquisition(pathname);
    btkDeleteAcquisition(acquisition);
end

Please provide any additional information below.

------------------------------------------------------------------------
       Segmentation violation detected at Fri Jun 05 09:29:31 2015
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.10.0.499 (R2010a)
  MATLAB License:   1240
  Operating System: Microsoft Windows 7
  Window System:    Version 6.1 (Build 7601: Service Pack 1)
  Processor ID:     x86 Family 6 Model 5 Stepping 2, GenuineIntel
  Virtual Machine:  Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
  Default Encoding:  windows-1252

Original issue reported on code.google.com by cedric.schwartz on 5 Jun 2015 at 7:45

GoogleCodeExporter commented 8 years ago
I forgot to mention that replacing 'btkDeleteAcquisition(acquisition)' by 
'clear all' in the simple script seems to solve the issue.
Cédric

Original comment by cedric.schwartz on 5 Jun 2015 at 8:11