Commit 924fcb8c by yiannis

The Close member function now resets all internal variables to the

same values as the contstructor.  This is to ensure a class instance
can be re-used without destruction/construction (as when used within
the matlab interface).
parent 30ef1473
...@@ -477,6 +477,14 @@ CDaqLowLevelIo::Close(void) ...@@ -477,6 +477,14 @@ CDaqLowLevelIo::Close(void)
{ {
fclose(m_pFile); fclose(m_pFile);
m_pFile = 0; m_pFile = 0;
m_UserErrorFunc = DefaultErrorFunc;
m_UserProgrFunc = DefaultProgressFunc;
m_HaveToc = false;
m_FirstFrame = -1;
m_LastFrame = -1;
m_EofStatus = eDAQ_EOF_UNDEFINED;
m_TocExists = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment