Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Visual-Studio MFC , +
Hello ,
I am trying to update my exisiting application thru MFC feature pack .
I have done all prerequisite for that.
like Change the base classes (CMDIFrameWnd to CMDIFrameWndEx etc.)from and other initialization .
But i am getting stack overflow while doing CoCreateInstanceEx ..
 
MULTI_QI multi_qi[1];
	ZeroMemory(multi_qi, sizeof(multi_qi));
	multi_qi[0].pIID = &__uuidof(IEPPoolingServer);    
	multi_qi[0].pItf = NULL;
	multi_qi[0].hr = 0;
	hRet = ::CoCreateInstanceEx(__uuidof(PoolServer), 0, CLSCTX_SERVER, pServerInfo, 1, multi_qi);
 
Call stack.
 
mfc90u.dll!CThreadLocalObject::GetData(CNoTrackObject * (void)* pfnCreateObject=0x00000000003b47d8)  Line 422   C++
    mfc90u.dll!AfxGetModuleState()  Line 456 + 0x13 bytes   C++
    mfc90u.dll!AfxGetModuleThreadState()  Line 498 + 0x5 bytes  C++
    mfc90u.dll!CWnd::FromHandlePermanent(HWND__ * hWnd=0x000000000038f6c0)  Line 316 + 0x5 bytes    C++
    mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=467226, unsigned __int64 wParam=134, __int64 lParam=0)  Line 400  C++
    mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x00000000518905e8, unsigned int nMsg=1, unsigned __int64 wParam=1, __int64 lParam=5369431246)  Line 441 + 0x10 bytes   C++
    user32.dll!0000000076e79bd1()
    [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]
    user32.dll!0000000076e73bfc()
    user32.dll!0000000076e73b78()
    mfc90u.dll!CWnd::DefWindowProcW(unsigned int nMsg=134, unsigned __int64 wParam=1, __int64 lParam=0)  Line 1050  C++
    mfc90u.dll!CWnd::WindowProc(unsigned int message=0, unsigned __int64 wParam=1, __int64 lParam=3725072)  Line 1756 + 0x14 bytes  C++
    mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x000000000007211a, HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=0)  Line 240 + 0x16 bytes  C++
    mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=467226, unsigned __int64 wParam=134, __int64 lParam=0)  Line 402 + 0x16 bytes C++
    mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x00000000518905e8, unsigned int nMsg=1, unsigned __int64 wParam=1, __int64 lParam=5369431246)  Line 441 + 0x10 bytes   C++
    user32.dll!0000000076e79bd1()
    user32.dll!0000000076e73bfc()
    user32.dll!0000000076e73b78()
    mfc90u.dll!CWnd::DefWindowProcW(unsigned int nMsg=134, unsigned __int64 wParam=1, __int64 lParam=0)  Line 1050  C++
    mfc90u.dll!CWnd::WindowProc(unsigned int message=0, unsigned __int64 wParam=1, __int64 lParam=3725072)  Line 1756 + 0x14 bytes  C++
    mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x000000000007211a, HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=0)  Line 240 + 0x16 bytes  C++
    mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=467226, unsigned __int64 wParam=134, __int64 lParam=1136)  Line 402 + 0x16 bytes  C++
    mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x0000000000000086, unsigned int nMsg=467226, unsigned __int64 wParam=1, __int64 lParam=0)  Line 441 + 0x10 bytes   C++
    user32.dll!0000000076e79bd1()
    user32.dll!0000000076e76aa8()
    user32.dll!0000000076e76bad()
    user32.dll!0000000076e822a0()
    user32.dll!0000000076e813c0()
    mfc90u.dll!CMDIFrameWnd::DefWindowProcW(unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=4)  Line 188   C++
    mfc90u.dll!CMDIFrameWndEx::OnNcActivate(int bActive=3474036)  Line 1418 C++
    mfc90u.dll!CWnd::OnWndMsg(unsigned int message=134, unsigned __int64 wParam=0, __int64 lParam=0, __int64 * pResult=0x000000000012a830)  Line 1904 + 0x8 bytes   C++
    mfc90u.dll!CWnd::WindowProc(unsigned int message=0, unsigned __int64 wParam=0, __int64 lParam=3725072)  Line 1755 + 0x24 bytes  C++
    mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x000000000007211c, HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=0)  Line 240 + 0x16 bytes  C++
    mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=467228, unsigned __int64 wParam=134, __int64 lParam=0)  Line 402 + 0x16 bytes C++
    mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x0000000000000000, unsigned int nMsg=3, unsigned __int64 wParam=1, __int64 lParam=4363120)  Line 441 + 0x10 bytes  C++
    user32.dll!0000000076e79bd1()
    user32.dll!0000000076e772cb()
    user32.dll!0000000076e76829()
    ntdll.dll!0000000077311225()
    user32.dll!0000000076e7908a()
    user32.dll!0000000076e79055()
    ole32.dll!000007fefdc7ffa2()
    ole32.dll!000007fefdc80119()
    ole32.dll!000007fefdc0e143()
    ole32.dll!000007fefdbbabd3()
    ole32.dll!000007fefdd1f8a2()
    ole32.dll!000007fefdd2282f()
    ole32.dll!000007fefdd2265b()
    ole32.dll!000007fefdbba8a6()
    ole32.dll!000007fefdbbaad3()
    ole32.dll!000007fefdbdda0c()
    ole32.dll!000007fefdd2205d()
    rpcrt4.dll!000007fefeedb949()
    ole32.dll!000007fefdd221d0()
    ole32.dll!000007fefdbdd8a2()
    ole32.dll!000007fefdbbdd71()
    ole32.dll!000007fefdbbdb55()
    ole32.dll!000007fefdbc169a()
    ole32.dll!000007fefdbc2090()
    ole32.dll!000007fefdbbdfd0()
    ole32.dll!000007fefdbbdef4()
>   EClient.dll!XEClient::GetPoolServer(ATL::CComPtr<IEPPoolingServer> & ptrPoolingServer={...})  Line 5560 + 0x2f bytes C++
 
Please provide help
Regards
BitsMax
Posted 8-Oct-12 0:10am
bitsmax494
Comments
Jochen Arndt at 8-Oct-12 5:30am
   
Did you changed the stack size (project linker settings)? If not, try building with increased stack size (default is 1 MB), to ensure that the error is not sourced by reaching the stack limit.
bitsmax at 9-Oct-12 0:33am
   
I have changed the limit , now getting access vialoation in MFCVCR90.dll ,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100