Click here to Skip to main content
15,918,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 9:20
Larry Mills Sr13-Dec-09 9:20 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 9:48
mveRichard MacCutchan13-Dec-09 9:48 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 23:19
mveRichard MacCutchan13-Dec-09 23:19 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr14-Dec-09 0:56
Larry Mills Sr14-Dec-09 0:56 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan14-Dec-09 4:48
mveRichard MacCutchan14-Dec-09 4:48 
QuestionSDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion12-Dec-09 7:36
sharion12-Dec-09 7:36 
AnswerRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
Cedric Moonen12-Dec-09 22:18
Cedric Moonen12-Dec-09 22:18 
GeneralRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion13-Dec-09 5:48
sharion13-Dec-09 5:48 
Thanks for your respond.

The application crashed when run the code generated by MFC application wizard.

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{	
	if (CFrameWnd::OnCreate(lpCreateStruct) == -1) //crash position
		return -1;

	return 0;
}


You know that above code snippet is generated by MFC wizard.

When the application stuck, information displayed in call stack window is as follows
---------
msvcr80d.dll!_free_base(void * pBlock=0x003b0000) line 109 + 0x13 byte
msvcr80d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x003b9470) line 1963
msvcr80d.dll!_free_dbg_nolock(void * pUserData=0x003b9470, int nBlockUse=1) line 1252 + 0x9 byte
msvcr80d.dll!_free_dbg(void * pUserData=0x003b9470, int nBlockUse=1) line 1194 + 0xd bytes
mfc80ud.dll!COccManager::PostCreateDialog(_AFX_OCC_DIALOG_INFO * pDlgInfo=0x0012f02c) line 237 + 0xf byte
mfc80ud.dll!CWnd::CreateDlgIndirect(const DLGTEMPLATE * lpDialogTemplate=0x00417e40, CWnd * pParentWnd=0x003bdbc8, HINSTANCE__ * hInst=0x00400000) line 323
mfc80ud.dll!CWnd::CreateDlg(const wchar_t * lpszTemplateName=0x00000065, CWnd * pParentWnd=0x003bdbc8) line 226 + 0x14 byte
mfc80ud.dll!CFormView::Create(const wchar_t * __formal=0x00000000, const wchar_t * __formal=0x00000000, unsigned long dwRequestedStyle=1350565888, const tagRECT & rect={...}, CWnd * pParentWnd=0x003bdbc8, unsigned int nID=59648, CCreateContext * pContext=0x0012fce4) line 101 + 0x16 byte
mfc80ud.dll!CFrameWnd::CreateView(CCreateContext * pContext=0x0012fce4, unsigned int nID=59648) line 590 + 0x33 byte
mfc80ud.dll!CFrameWnd::OnCreateClient(tagCREATESTRUCTW * __formal=0x0012f518, CCreateContext * pContext=0x0012fce4) line 611 + 0x11 byte
mfc80ud.dll!CFrameWnd::OnCreateHelper(tagCREATESTRUCTW * lpcs=0x0012f518, CCreateContext * pContext=0x0012fce4) line 630 + 0x18 byte
mfc80ud.dll!CFrameWnd::OnCreate(tagCREATESTRUCTW * lpcs=0x0012f518) line 622
LiqStoreDB.exe!CMainFrame::OnCreate(tagCREATESTRUCTW * lpCreateStruct=0x0012f518) line 62 + 0xc byte
---------
I feel the call stack information give me little clue. It is only related to MFC itself. I have no idea for further solution.

Need to mention that the MFC application with SDI deal with ODBC.

When creating a SDI MFC application only by wizard with the same configuration and compilation environment, no exception ocurrs. So I guess if I miss something when dealing with ODBC.

Anyone ever experienced this situation, please help me out. Thanks a lot.
QuestionI can't get MAC by GetAdaptersAddresses [modified] Pin
DavidBrother12-Dec-09 4:57
DavidBrother12-Dec-09 4:57 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 5:27
DavidBrother12-Dec-09 5:27 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:06
mveRichard MacCutchan12-Dec-09 6:06 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:11
mveRichard MacCutchan12-Dec-09 6:11 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 16:34
DavidBrother12-Dec-09 16:34 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 17:29
DavidBrother12-Dec-09 17:29 
QuestionTAPI send data Pin
cmos12-Dec-09 2:12
cmos12-Dec-09 2:12 
AnswerRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 2:51
mveRichard MacCutchan12-Dec-09 2:51 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 4:11
cmos12-Dec-09 4:11 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 4:25
mveRichard MacCutchan12-Dec-09 4:25 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 4:36
cmos12-Dec-09 4:36 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 4:53
mveRichard MacCutchan12-Dec-09 4:53 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 5:07
cmos12-Dec-09 5:07 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 6:04
mveRichard MacCutchan12-Dec-09 6:04 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 14:19
cmos12-Dec-09 14:19 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 22:52
mveRichard MacCutchan12-Dec-09 22:52 
GeneralRe: TAPI send data Pin
cmos13-Dec-09 1:18
cmos13-Dec-09 1:18 

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.