Click here to Skip to main content
12,953,700 members (51,277 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: , +
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 7-Oct-12 23:10pm
bitsmax532
Comments
Jochen Arndt 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 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
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2017
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