![]() |
|
#1
|
|||
|
|||
assertion failureHi all,
What is an assertion failure? My MFC Application program with VS .net gave an assertion failure error by referencing line 231 of winsplit.cpp file which i hope is the sorce file of mfc. thanks. |
|||
|
#2
|
|||
|
|||
Re: assertion failureIn debug mode an assert triggers whenever some illegal condition occurs(in release they evaluate to nothing). MFC has them all over the place to help you catch some errors early on. Typically, any function that works with any kind of control or window will have something like:
ASSERT(::IsWindow(m_hWnd)); Meaning things will come to a screaming halt whenever the window or control isn't created properly. Unless you provide us with more info, we can't help ya. What does the code around the assert look like? Often there will be some text comments in the sourcefile telling you what may be the reason for that particular assert to trigger. What code called the function that asserted? |
|
#3
|
|||
|
|||
Re: assertion failurei solved the problem, thanks. In the program i create a splitter that divides the window into two parts and i create something in both parts, but my mistake was writing (2,1) instead of (1,2) when creating the splitter. So the program can not create the widgets properly.
|
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debug assertion failed | BrucePataki | MS Visual C++ / MFC Forum | 2 | 02-Nov-2008 06:01 |
| Debug Assertion Failed! | dlare9 | C Programming Language | 3 | 13-Nov-2005 23:18 |
| MFC Assertion Failed | patti_ | MS Visual C++ / MFC Forum | 3 | 21-Jul-2005 00:50 |
| assertion error | FooFighter | MS Visual C++ / MFC Forum | 1 | 17-May-2005 15:03 |
| Non-local heaps and assertion errors | Marius | MS Visual C++ / MFC Forum | 1 | 03-Sep-2004 05:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The