![]() |
|
#1
|
|||
|
|||
Debug assertion failedRunning the application where we feed the data from one window and display in another window having list view control - I notice that data is correctly passed on for display in view class. However, I tried to create a list view control pointer like this:
CListCTRL* pList = (CListCTRL *) GetDlgItem (IDC_List1); which in turn gives me runtime error in winocc.cpp that debug assertion failed at line 94: Line 94 in winocc.cpp is ASSERT(::IsWindow(m_hWnd)); If anyone knows how to fix this problem or have any tips, I would surely appreciate. Bruce |
|||
|
#2
|
|||
|
|||
|
Is the listctrl part of a dialog?
The assert triggers because whatever (window) object you're trying to access has not yet been created. The window's class may have been instantiated, but not Create(..)'ed. The first valid point to access any window object (ctrl) in a dialog is in OnInitDialog(), unless it's a control you explicitly create yourself. Need some more code here... |
|
#3
|
|||
|
|||
Re: Debug assertion failedsir please help i m having one software of mobile when i open it shows
microsoft visual c++ debug library failed debug assertion failed program:c rogram\samsung electronics\samsung pst.exefile:dlgdata.cpp line:43 need urjent help at vinods.world@yahoo.com |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Detect Removable USB Device | Automatik | C Programming Language | 18 | 24-Sep-2009 06:19 |
| MFC Assertion Failed | patti_ | MS Visual C++ / MFC Forum | 3 | 21-Jul-2005 01:50 |
| assertion error | FooFighter | MS Visual C++ / MFC Forum | 1 | 17-May-2005 16:03 |
| fltk-2.0 cvs | Plumb | FLTK Forum | 20 | 13-Nov-2004 08:10 |
| Non-local heaps and assertion errors | Marius | MS Visual C++ / MFC Forum | 1 | 03-Sep-2004 06:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The