Open intjelic opened 8 years ago
After investigation, it results exactly when the internal C++ instance is destroyed.
def __dealloc__(self):
if self.p_soundrecorder is not NULL:
print("aaa")
del self.p_soundrecorder
print("bbb")
The message "aaa" is printed, "bbb" isn't.
When subclassing
sf.SoundRecorder
and we don't manually callstop()
afterstart()
was called, it results in segmentation fault.Here's the code that reproduces the problem on Linux with Cython 0.24.
The result is.
However, if I add the line
sound_recorder.stop()
, the error message isn't displayed.