Skip to main content

JDICplus TabbedBrowser cost so long time to close a tabpane

1 reply [Last post]
max7677
Offline
Joined: 2009-10-11
Points: 0

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.
glecocq
Offline
Joined: 2009-03-04
Points: 0

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

void BrowserThread::Terminate()
{
_HP_
if(NULL!=m_hThread){
::SetEvent(m_hTerminate);
//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);
::CloseHandle(m_hThread);
m_hThread = NULL;
m_dwThreadId = 0;
}
}