Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » MDI Sample Crash ... Collapse All
Subject Author Date
Buba Jun 13, 2002 - 8:08 AM

The example crash when is switched between MDI-windows. In a debug mode the application crash after the first switching in:
...
CExtHookSink::SetupHookWndSink (427) CExtMenuControlBar::_SyncActiveMdiChild (870)
...

Sergiy Lavrynenko Jun 18, 2002 - 11:13 AM

I confirm this bug.
You will have to wait for the next version
a bit (2-3 weeks).

Buba Jun 13, 2002 - 9:51 PM

In ExtHook.cpp line 466, before

bool CExtHookSink::SetupHookWndSink
...
if( pHookChains->m_HookSinkList.GetCount() == 0 )
pHookChains->DestroyChains( true );
...

one must

if( pHookChains->m_HookSinkList.GetCount() == 0 )
{
g_HookChainsMap.RemoveKey( hWnd );
pHookChains->DestroyChains( true );
}

Buba Jun 13, 2002 - 9:50 PM

In ExtHook.cpp line 466, before

bool CExtHookSink::SetupHookWndSink
...
if( pHookChains->m_HookSinkList.GetCount() == 0 )
{
g_HookChainsMap.RemoveKey( hWnd );
            pHookChains->DestroyChains( true );
        }