Ejemplo n.º 1
0
void __fastcall TComm::Disconnect()
{
  if (m_DefaultIntf) {

    if (ServerData->EventIID != GUID_NULL)
      DisconnectEvents(GetDunk());
    m_DefaultIntf.Reset();
  }
}
Ejemplo n.º 2
0
void C_Renderer::SetDevice(C_Device* dev)
{
	DisconnectEvents();
	m_dev = dev;

	m_dev->OnDeviceCreated.RegisterSingleHandler<C_Renderer, &C_Renderer::OnDeviceCreated>(this);
	m_dev->OnDeviceLost.RegisterSingleHandler<C_Renderer, &C_Renderer::OnDeviceLost>(this);
	m_dev->OnDeviceRelease.RegisterSingleHandler<C_Renderer, &C_Renderer::OnDeviceRelease>(this);
	m_dev->OnDeviceReset.RegisterSingleHandler<C_Renderer, &C_Renderer::OnDeviceReset>(this);
}
ThreadSearchLoggerList::~ThreadSearchLoggerList()
{
    wxWindow* pParent = m_pListLog->GetParent();
    if ( pParent != NULL )
    {
        // Events are managed dynamically to be able to stop/start management when required.
        DisconnectEvents(pParent);
    }
    m_pListLog->Destroy();
}
Ejemplo n.º 4
0
wxIFMFloatingWindowBase::~wxIFMFloatingWindowBase()
{
    DisconnectEvents();
    m_window->Destroy();

    // delete our root container
    if( m_destroyRoot && globalPointerMap.find(m_component) != globalPointerMap.end()) //maks
    {
        wxIFMDeleteComponentEvent evt(m_component);
        GetIP()->ProcessPluginEvent(evt);
    }
}
Ejemplo n.º 5
0
Parser::~Parser()
{
    CC_LOCKER_TRACK_P_MTX_LOCK(ParserCommon::s_ParserMutex)

    DisconnectEvents();
    TerminateAllThreads();

    if (ParserCommon::s_CurrentParser == this)
        ParserCommon::s_CurrentParser = nullptr;

    CC_LOCKER_TRACK_P_MTX_UNLOCK(ParserCommon::s_ParserMutex)
}
Ejemplo n.º 6
0
Parser::~Parser()
{
    TRACK_THREAD_LOCKER(s_ParserCritical);
    wxCriticalSectionLocker locker(s_ParserCritical);
    THREAD_LOCKER_SUCCESS(s_ParserCritical);

    DisconnectEvents();
    TerminateAllThreads();

    if (s_CurrentParser == this)
        s_CurrentParser = nullptr;
}
Ejemplo n.º 7
0
void C_Renderer::OnDeviceRelease()
{
	if(m_sprite!=0)
	{
		m_sprite->Release();
		m_sprite = 0;
	}
	if(vb!=0)
	{
		vb->Release();
		vb = 0;
	}
	DisconnectEvents();
}
Ejemplo n.º 8
0
Parser::~Parser()
{
    // Don't wrap the s_ParserMutex lock around TerminateAllThreads(), since, it will cause a deadlock
    // in TerminateAllThreads() when calling DeleteParser() before parsing has finished.

    DisconnectEvents();
    TerminateAllThreads();

    CC_LOCKER_TRACK_P_MTX_LOCK(ParserCommon::s_ParserMutex)

    if (ParserCommon::s_CurrentParser == this)
        ParserCommon::s_CurrentParser = nullptr;

    CC_LOCKER_TRACK_P_MTX_UNLOCK(ParserCommon::s_ParserMutex)
}
void ThreadSearchLoggerTree::Clear()
{
	// As wxTreeCtrl::DeleteChildren sends lots of selected events
	// and because we don't want any wxTreeCtrl event to be processed
	// during delete, we disable events management during tree cleaning
	// (DisconnectEvents then ConnectEvents).
	wxWindow* pParent = m_pTreeLog->GetParent();
	if ( pParent == NULL ) return;

	DisconnectEvents(pParent);

    m_pTreeLog->DeleteChildren(m_pTreeLog->GetRootItem());
    m_FirstItemProcessed = false;

    m_IndexManager.Reset();

    ConnectEvents(pParent);
}
Ejemplo n.º 10
0
OrxEvent::~OrxEvent()
{
    ListItem    *Current;
    ESource     *Content;

    FPRINTF2(logfile,"OrxEvent::~OrxEvent()   --   i.e., the destructor. \n");
    DisconnectEvents();

    Current = EventSourceChain->FindItem(0);
    while (Current)
    {
        Content = (ESource *)Current->GetContent();
        if (Content->EventType == ESource::AddScriptlet)
        {
            Content->Release();
        }
        Current = EventSourceChain->FindItem();
    }
    delete EventSourceChain;
    FPRINTF2(logfile,"OrxEvent::~OrxEvent()   completed. \n");

}
Ejemplo n.º 11
0
C_Renderer::~C_Renderer()
{
	if(m_sprite!=0) m_sprite->Release();
	if(vb!=0) vb->Release();
	DisconnectEvents();
}
Ejemplo n.º 12
0
AVPlayer::Data::~Data() {
    DisconnectEvents();
}