Click here to Skip to main content
15,888,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Question Pin
Software20076-Jun-11 17:18
Software20076-Jun-11 17:18 
AnswerRe: C++ Question Pin
Niklas L7-Jun-11 2:00
Niklas L7-Jun-11 2:00 
GeneralRe: C++ Question Pin
Stefan_Lang7-Jun-11 2:05
Stefan_Lang7-Jun-11 2:05 
GeneralRe: C++ Question Pin
Niklas L7-Jun-11 2:26
Niklas L7-Jun-11 2:26 
AnswerRe: C++ Question Pin
Stefan_Lang7-Jun-11 2:00
Stefan_Lang7-Jun-11 2:00 
GeneralRe: C++ Question Pin
Software20077-Jun-11 5:03
Software20077-Jun-11 5:03 
QuestionMiddleware/CORBA Data Field Inheritance Pin
rkeeler786-Jun-11 13:11
rkeeler786-Jun-11 13:11 
QuestionSuddenly Exe is not running Pin
pix_programmer6-Jun-11 2:16
pix_programmer6-Jun-11 2:16 
Hi!
I've developed a MFC application. It was running fine. Suddenl it stopped running. I didn't change any code. I could not run setup file and from IDE as

well. If I try to run in release mode:

'flash_mfc.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.MFCLOC_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_15fc9313\mfc90enu.dll',

Binary was not built with debug information.

is displayed in the output window.


If I run in debug mode, application crashes and breaks at

ASSERT(IsWindow(pTemp->m_hWnd));

in the file occcont.cpp.

CreateDlgControls failed during dialog init. Detected memory leaks!

CoCreateInstance of OLE control {D27CDB6E-AE6D-11CF-96B8-444553540000} failed.
Result code: 0x80040154
Is the control is properly registered?

is displayed in the output window. Why it has happened suddenly(without no change in code)? Is this due to ServicePack? I 'm developing using Visual

Studio 2008 under Windows XP. The same project output runs fine at target systems. Here's the debug CallStack:

> mfc90ud.dll!COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO * pOccDlgInfo=0x0012f7dc) Line 926 + 0x23

bytes
mfc90ud.dll!COccManager::CreateDlgControls(CWnd * pWndParent=0x0012fabc, const wchar_t * lpszResourceName=0x00000088,

_AFX_OCC_DIALOG_INFO * pOccDlgInfo=0x0012f7dc) Line 413
mfc90ud.dll!CDialog::HandleInitDialog(unsigned int __formal=853834, unsigned int __formal=853834) Line 661 + 0x1f bytes
mfc90ud.dll!CWnd::OnWndMsg(unsigned int message=272, unsigned int wParam=853834, long lParam=0, long * pResult=0x0012f49c)

Line 2018 + 0x11 bytes
mfc90ud.dll!CWnd::WindowProc(unsigned int message=272, unsigned int wParam=853834, long lParam=0) Line 1755 + 0x20 bytes


mfc90ud.dll!AfxCallWndProc(CWnd * pWnd=0x0012fabc, HWND__ * hWnd=0x000d074a, unsigned int nMsg=272, unsigned int

wParam=853834, long lParam=0) Line 240 + 0x1c bytes
mfc90ud.dll!AfxWndProc(HWND__ * hWnd=0x000d074a, unsigned int nMsg=272, unsigned int wParam=853834, long lParam=0) Line

403
mfc90ud.dll!AfxWndProcBase(HWND__ * hWnd=0x000d074a, unsigned int nMsg=272, unsigned int wParam=853834, long lParam=0)

Line 441 + 0x15 bytes
user32.dll!7e418734()
[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]
user32.dll!7e418816()
user32.dll!7e42927b()
user32.dll!7e42651a()
user32.dll!7e42683e()
user32.dll!7e43f03a()
mfc90ud.dll!CWnd::CreateDlgIndirect(const DLGTEMPLATE * lpDialogTemplate=0x0016d820, CWnd * pParentWnd=0x00000000,

HINSTANCE__ * hInst=0x00400000) Line 312 + 0x2a bytes
mfc90ud.dll!CDialog::DoModal() Line 576 + 0x20 bytes
flash_mfc.exe!Cflash_mfcApp::InitInstance() Line 194 + 0xb bytes
mfc90ud.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t *

lpCmdLine=0x00020846, int nCmdShow=1) Line 37 + 0xd bytes
flash_mfc.exe!wWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t *

lpCmdLine=0x00020846, int nCmdShow=1) Line 34
flash_mfc.exe!__tmainCRTStartup() Line 578 + 0x35 bytes
flash_mfc.exe!wWinMainCRTStartup() Line 403
kernel32.dll!7c817077()

What to do to run the project at my system?
AnswerRe: Suddenly Exe is not running Pin
Alan Balkany6-Jun-11 9:21
Alan Balkany6-Jun-11 9:21 
AnswerRe: Suddenly Exe is not running Pin
Stefan_Lang7-Jun-11 2:17
Stefan_Lang7-Jun-11 2:17 
GeneralRe: Suddenly Exe is not running Pin
pix_programmer7-Jun-11 2:49
pix_programmer7-Jun-11 2:49 
GeneralRe: Suddenly Exe is not running Pin
Stefan_Lang7-Jun-11 2:55
Stefan_Lang7-Jun-11 2:55 
GeneralRe: Suddenly Exe is not running Pin
pix_programmer7-Jun-11 3:00
pix_programmer7-Jun-11 3:00 
GeneralRe: Suddenly Exe is not running Pin
Stefan_Lang7-Jun-11 3:26
Stefan_Lang7-Jun-11 3:26 
QuestionDisplay CBitmap into CStatic [modified] Pin
_Flaviu6-Jun-11 1:54
_Flaviu6-Jun-11 1:54 
AnswerRe: Display CBitmap into CStatic Pin
Roger Allen6-Jun-11 2:24
Roger Allen6-Jun-11 2:24 
GeneralRe: Display CBitmap into CStatic Pin
_Flaviu6-Jun-11 2:39
_Flaviu6-Jun-11 2:39 
QuestionCStatic ModifyStyle Pin
_Flaviu6-Jun-11 1:00
_Flaviu6-Jun-11 1:00 
AnswerRe: CStatic ModifyStyle Pin
The_Inventor6-Jun-11 20:41
The_Inventor6-Jun-11 20:41 
AnswerRe: CStatic ModifyStyle Pin
Code-o-mat7-Jun-11 22:59
Code-o-mat7-Jun-11 22:59 
QuestionHow to use tcp keepalive to check the client is alive? Pin
wangningyu4-Jun-11 23:23
wangningyu4-Jun-11 23:23 
AnswerRe: How to use tcp keepalive to check the client is alive? Pin
Code-o-mat5-Jun-11 22:55
Code-o-mat5-Jun-11 22:55 
GeneralRe: How to use tcp keepalive to check the client is alive? Pin
Emilio Garavaglia6-Jun-11 3:41
Emilio Garavaglia6-Jun-11 3:41 
GeneralRe: How to use tcp keepalive to check the client is alive? Pin
Code-o-mat6-Jun-11 3:58
Code-o-mat6-Jun-11 3:58 
AnswerRe: How to use tcp keepalive to check the client is alive? Pin
jschell6-Jun-11 9:07
jschell6-Jun-11 9:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.