GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Jul-2005, 11:06
BrucePataki BrucePataki is offline
Awaiting Email Confirmation
 
Join Date: Jul 2005
Posts: 4
BrucePataki is on a distinguished road
Angry

Debug assertion failed


Running 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  
Old 26-Jul-2005, 16:12
imbtf imbtf is offline
Junior Member
 
Join Date: Aug 2004
Posts: 41
imbtf will become famous soon enough
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  
Old 02-Nov-2008, 07:01
vinod kukreja vinod kukreja is offline
New Member
 
Join Date: Nov 2008
Posts: 1
vinod kukreja is on a distinguished road

Re: Debug assertion failed


sir please help i m having one software of mobile when i open it shows
microsoft visual c++ debug library failed
debug assertion failed
program:crogram\samsung electronics\samsung pst.exe
file:dlgdata.cpp
line:43

need urjent help at vinods.world@yahoo.com
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect Removable USB Device Automatik C Programming Language 8 26-Jul-2005 05:36
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

All times are GMT -6. The time now is 11:35.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.