views:

14

answers:

0

I have a Visual Studio 2008 WTL 8.1 project that uses an ActiveX HTML dialog control. Unfortunately, when the view is created, VS2008 freezes and the application dialog never appears.

The callstack just before the lockup looks like this:

ax_test.exe!WTL::CFrameWindowImplBase<ATL::CWindow,ATL::CWinTraits<114229248,262400> >::Create(HWND__ * hWndParent=0x00000000, ATL::_U_RECT rect={...}, const wchar_t * szWindowName=0x0012fa08, unsigned long dwStyle=114229248, unsigned long dwExStyle=262400, ATL::_U_MENUorID MenuOrID={...}, unsigned short atom=49912, void * lpCreateParam=0x00000000)  Line 439    C++
ax_test.exe!WTL::CFrameWindowImpl<CMainFrame,ATL::CWindow,ATL::CWinTraits<114229248,262400> >::Create(HWND__ * hWndParent=0x00000000, ATL::_U_RECT rect={...}, const wchar_t * szWindowName=0x0012fa08, unsigned long dwStyle=114229248, unsigned long dwExStyle=262400, HMENU__ * hMenu=0x01f404fd, void * lpCreateParam=0x00000000)  Line 1175    C++
ax_test.exe!WTL::CFrameWindowImpl<CMainFrame,ATL::CWindow,ATL::CWinTraits<114229248,262400> >::CreateEx(HWND__ * hWndParent=0x00000000, ATL::_U_RECT rect={...}, unsigned long dwStyle=0, unsigned long dwExStyle=0, void * lpCreateParam=0x00000000)  Line 1195 + 0x2d bytes   C++
ax_test.exe!Run(wchar_t * __formal=0x00020b56, int nCmdShow=1)  Line 21 + 0x23 bytes    C++
ax_test.exe!wWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * __formal=0x00000000, wchar_t * lpstrCmdLine=0x00020b56, int nCmdShow=1)  Line 53 + 0xd bytes C++
ax_test.exe!__tmainCRTStartup()  Line 263 + 0x2c bytes  C
ax_test.exe!wWinMainCRTStartup()  Line 182  C
kernel32.dll!_BaseProcessStart@4()  + 0x23 bytes    

The last line of code executed before the dev environment freezes is in atlframe.h:

436: HWND hWnd = ::CreateWindowEx(dwExStyle, MAKEINTATOM(atom), szWindowName,
437:     dwStyle, rect.m_lpRect->left, rect.m_lpRect->top, rect.m_lpRect->right - rect.m_lpRect->left,
438:     rect.m_lpRect->bottom - rect.m_lpRect->top, hWndParent, MenuOrID.m_hMenu,
439:     ModuleHelper::GetModuleInstance(), lpCreateParam);

To reproduce this, I only have to create a new WTL project using the wizard and select:

  • SDI Application
  • Enable ActiveX Control Hosting
  • View Type: HTML Page

Has anybody else encountered this? Is there a patch or something to fix this issue?

Thanks, PaulH


Edit: I have a similar issue with the MFC sample applications that come with VS2008 Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples\C++\MFC\internet\

In particular, I've tried MFCIE and DHtmlExplore. The last thing to be printed in the "output" window is:

'DHtmlExplore.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll', Symbols loaded (source information stripped).
'DHtmlExplore.exe': Unloaded 'C:\WINDOWS\system32\msapsspc.dll'
'DHtmlExplore.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll'