Skip to main content

JDICplus TabbedBrowser cost so long time to close a tabpane

1 reply [Last post]
Joined: 2009-10-11

JDICplus is so easy to dev webbrowser . I use the tabbedbrowser demo in my computer .When i click a link of a webpages in the tabbedbrowser,the popup tabpane showed.

But when I tend to close the tabpane,It cost too long time to bare it, nearly 20 seconds .

Can anybody help me ? Thanks a lot .

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-03-04

in the source file BrHolderThread.cpp :
you wait 15s fo the termination.

void BrowserThread::Terminate()
//That can be an alarm termination
//in this case the thread already disappear.
//Long but limited wait is the best solution here.
::WaitForSingleObject(m_hThread, 15000);
m_hThread = NULL;
m_dwThreadId = 0;