CEdit Box Error
-
Hi all, I am trying to add Edit Box on my dialog application. I am creating a variable name as CString m_strEdit; through ClassWizard->Member variables but when i run the application some junk value is coming on editbox and when i close the application(i.e end all the dialogs) I am getting error. Can someone tell me,whats going on wrong The debug error is shown below
Debug Assertion Failed!
File:dbgheap.c
Expresion:_CtrlIsValidHeapPointer(pUserData)
Thanks Raj
-
Hi all, I am trying to add Edit Box on my dialog application. I am creating a variable name as CString m_strEdit; through ClassWizard->Member variables but when i run the application some junk value is coming on editbox and when i close the application(i.e end all the dialogs) I am getting error. Can someone tell me,whats going on wrong The debug error is shown below
Debug Assertion Failed!
File:dbgheap.c
Expresion:_CtrlIsValidHeapPointer(pUserData)
Thanks Raj
Have you initialised
m_strEdit
with any valid content before you show the dialog? As to the Debug Assertion, you should try setting some breakpoints in your application and check the call stack to see where in your application the failure is likely to be.I must get a clever new signature for 2011.