// ------------------------------------------------------------------------------------ public override void LoadData() { if (Static != null) { // take data from previous instance m_listenerThread = Static.m_listenerThread; m_listener = Static.m_listener; m_clients = Static.m_clients; m_active = Static.m_active; m_arrayBuffer = Static.m_arrayBuffer; m_tempBuffer = Static.m_tempBuffer; m_receivedMsgHandlers = Static.m_receivedMsgHandlers; MySessionComponentExtDebug.Static = this; base.LoadData(); return; } MySessionComponentExtDebug.Static = this; if (m_tempBuffer == IntPtr.Zero) { m_tempBuffer = Marshal.AllocHGlobal(MsgSizeLimit); } if (!ForceDisable) { StartServer(); } base.LoadData(); }
// ------------------------------------------------------------------------------------ public override void LoadData() { MySessionComponentExtDebug.Static = this; if (m_tempBuffer == IntPtr.Zero) { m_tempBuffer = Marshal.AllocHGlobal(MsgSizeLimit); } if (!ForceDisable) { StartServer(); } base.LoadData(); }