Its in appcore.cpp // CWinApp diagnostics #ifdef _DEBUG void CWinApp::AssertValid() const { CWinThread::AssertValid(); ASSERT(afxCurrentWinApp == this); ASSERT(afxCurrentInstanceHandle == m_hInstance);
if (AfxGetThread() != (CWinThread*)this) return; // only do subset if called from different thread if (m_pDocManager != NULL) ASSERT_VALID(m_pDocManager); }
Neels
Posts
-
Unhandled exception at 0x1b97d783 (mfc71d.dll) in graf.exe: User breakpoint. -
Unhandled exception at 0x1b97d783 (mfc71d.dll) in graf.exe: User breakpoint.this occurs while iam trying to use domodal() only in debug mode.. it works fine in release mode. help me to get rid of this...
-
Debug assert error while using DoModal() ?? please helpwhen i press retry option it gives the follwing message: Unhandled exception at 0x1b97d783 (mfc71d.dll) in graf.exe: User breakpoint.
-
Debug assert error while using DoModal() ?? please helpNo resource is not causing the problem... what could be the case which asserts in debug but no in release??? my work fully stopped with this bug. :((
-
Debug assert error while using DoModal() ?? please helpNo...... resource is not causing the problem... what could be the case which asserts in debug but no in release??? my work fully stopped with this bug. :((
-
Debug assert error while using DoModal() ?? please helpI removed windowpos function , Oninit function has local variables initialization nothing other than that. FYI: I found all reource IDs have been duplicated from other workspace to current work space and trying to display the dialog. could this be a probelm ?
-
[Message Deleted][Message Deleted]
-
Debug assert error while using DoModal() ?? please helpCDed.h file ----------------- class CDedJed : public CDialog { // Construction public: CDedJed(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CDedJed) enum { IDD = IDD_DED_JED_DLG }; //}}AFX_DATA // Overrides //{{AFX_VIRTUAL(CDedJed) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL public: void XX(); void YY(); public: int m_TT; // Implementation protected: // Generated message map functions //{{AFX_MSG(CDedJed) virtual void OnOK(); virtual BOOL OnInitDialog(); afx_msg void OnWindowPosChanged(LPWINDOWPOS lpWndPos); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #endif // !defined(AFX_DELETEJED_H__20D49F0D_8F35_4A61_A493_1F332F85A293__INCLUDED_) CDedJed.cpp file ------------ ///////////////////////////////////////////////////////////////////////////// // CDedJed dialog CDedJed::CDedJed(CWnd* pParent /*=NULL*/) : CDialog(CDedJed::IDD, pParent) { //{{AFX_DATA_INIT(CDedJed) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CDedJed::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDedJed) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDedJed, CDialog) //{{AFX_MSG_MAP(CDedJed) ON_WM_WINDOWPOSCHANGED() //}}AFX_MSG_MAP END_MESSAGE_MAP()
-
Debug assert error while using DoModal() ?? please helpthanks for ur reply i use gtalk, got no skype setup/accnt. iam online urneel@gmail.com FYI: This error occur only in debug mode but not in release mode. here is debug details VERIFY(RunModalLoop(dwFlags) == m_nModalResult); ASSERT(ContinueModal()); // pump message, but quit on WM_QUIT if (!AfxPumpMessage()) { AfxPostQuitMessage(0); return -1; } BOOL AFXAPI AfxPumpMessage() { CWinThread *pThread = AfxGetThread(); if( pThread ) return pThread->PumpMessage(); // here i end up with debug assert error else return AfxInternalPumpMessage(); } regards Neel
-
Debug assert error while using DoModal() ?? please helpHi here is my code CDedJed d(this); //passes through constructor and member functions as well d.Domodal(); // goes into the windows files wincore.cpp dlgcore.cpp dbgrpt.cpp gives out debug assert error at the following lcation ->!::PeekMessage(pMsg, NULL, NULL, NULL, PM_NOREMOVE) -> VERIFY(RunModalLoop(dwFlags) == m_nModalResult); -> domodal(); FYI: resource IDs which are loading properly..checked with resource.h help on this regard Neel