#include "stdafx.h" #include "MultiSync.h" #ifdef _DEBUG #define new new(_NORMAL_BLOCK,__FILE__,__LINE__) #endif CMultiSync::CMultiSync(int count) { m_MaxCount = count+1; m_pCS = NULL; memset(_DebugInfo, 0, sizeof(_DebugInfo)); if (count <= sizeof(_DebugInfo)/sizeof(*_DebugInfo)) m_DebugInfo = _DebugInfo; else m_DebugInfo = new TCHAR [m_MaxCount][64]; Reset(); } CMultiSync::~CMultiSync() { for(int i=0; i sizeof(_DebugInfo)/sizeof(*_DebugInfo)) delete [] m_DebugInfo; } void CMultiSync::Reset() { if (m_pCS) { for(int i=0; i