Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please help me with c.(beginner) Pin
Steve S18-Sep-03 6:33
Steve S18-Sep-03 6:33 
GeneralAssertion Failed in OnCancel Pin
BoudewijnEctor18-Sep-03 0:42
BoudewijnEctor18-Sep-03 0:42 
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 1:09
Jagadeesh VN18-Sep-03 1:09 
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 1:11
Jagadeesh VN18-Sep-03 1:11 
GeneralRe: Assertion Failed in OnCancel Pin
BoudewijnEctor18-Sep-03 1:44
BoudewijnEctor18-Sep-03 1:44 
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 1:47
Jagadeesh VN18-Sep-03 1:47 
GeneralRe: Assertion Failed in OnCancel Pin
BoudewijnEctor18-Sep-03 4:03
BoudewijnEctor18-Sep-03 4:03 
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 4:18
Jagadeesh VN18-Sep-03 4:18 
If you are calling OnCancel(), you are in trouble. It will take you to an infinite loop. So you should be using CDialog::OnCancel()

I know, thats not the problem you are facing. But apart from that, I just can't find anything odd in this piece of code. You can do one thing. As I have suggested earlier put a breakpoint in

CDlgDiag2::OnCancel()
{
EndDialog(); //HERE
}

put another break point in

CDlgdiag1::OnSomeAction()
{
CDlgdiag2 diag2;
diag2.DoModal();
} // HERE


run the program in DEBUG mode( press F5 ), and then press the Cancel button, then you will be in EndDialog fn. press F5 again, then either the control will reach the 2nd break point, or else it will ASSERT. When it ASSERTs, right click anywhere on the toolbar and select the 'CallStack' option. If you are not getting any idea on what it is, just dump it here, so that we can have a look at where its going wrong.

Another thing I noticed is, wincore.cpp has only 3948 lines. How come you got an error in 4198 ?


"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 1:54
Jagadeesh VN18-Sep-03 1:54 
GeneralRe: Assertion Failed in OnCancel Pin
David Crow18-Sep-03 3:37
David Crow18-Sep-03 3:37 
GeneralRe: Assertion Failed in OnCancel Pin
Jagadeesh VN18-Sep-03 3:55
Jagadeesh VN18-Sep-03 3:55 
GeneralListBox selection Pin
BoudewijnEctor18-Sep-03 0:02
BoudewijnEctor18-Sep-03 0:02 
GeneralRe: ListBox selection Pin
HalfWayMan18-Sep-03 0:06
HalfWayMan18-Sep-03 0:06 
GeneralRe: ListBox selection Pin
Jagadeesh VN18-Sep-03 0:38
Jagadeesh VN18-Sep-03 0:38 
GeneralDirectX and .NET Pin
devvvy17-Sep-03 22:55
devvvy17-Sep-03 22:55 
GeneralRe: DirectX and .NET Pin
fadee17-Sep-03 23:51
fadee17-Sep-03 23:51 
GeneralRe: DirectX and .NET Pin
devvvy18-Sep-03 3:11
devvvy18-Sep-03 3:11 
GeneralInteger to hexadecimal conversion Pin
BoudewijnEctor17-Sep-03 22:50
BoudewijnEctor17-Sep-03 22:50 
GeneralRe: Integer to hexadecimal conversion Pin
RChin17-Sep-03 23:15
RChin17-Sep-03 23:15 
GeneralRe: Integer to hexadecimal conversion Pin
Alexander M.,18-Sep-03 6:18
Alexander M.,18-Sep-03 6:18 
GeneralMSComm error Pin
El'Cachubrey17-Sep-03 22:33
El'Cachubrey17-Sep-03 22:33 
GeneralCToolBar related Pin
Shah Shehpori17-Sep-03 21:30
sussShah Shehpori17-Sep-03 21:30 
GeneralTLB Error Load Error - Pin
fadee17-Sep-03 19:38
fadee17-Sep-03 19:38 
GeneralRe: TLB Error Load Error - Pin
Michael P Butler17-Sep-03 22:05
Michael P Butler17-Sep-03 22:05 
GeneralRe: TLB Error Load Error - Pin
fadee17-Sep-03 22:45
fadee17-Sep-03 22:45 

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.