Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 22:59
Hellin12-Aug-03 22:59 
GeneralIndigo Press devices Pin
Abubakar Siddque12-Aug-03 19:10
Abubakar Siddque12-Aug-03 19:10 
GeneralReferences ...?! Pin
Xalon12-Aug-03 17:57
Xalon12-Aug-03 17:57 
GeneralDigital Signal Processing Pin
DougW4812-Aug-03 15:56
DougW4812-Aug-03 15:56 
GeneralRe: Digital Signal Processing Pin
Joey Bloggs12-Aug-03 17:10
Joey Bloggs12-Aug-03 17:10 
GeneralWinsock Issues! Pin
Steven M Hunt12-Aug-03 14:29
Steven M Hunt12-Aug-03 14:29 
GeneralRe: Winsock Issues! Pin
valikac12-Aug-03 18:12
valikac12-Aug-03 18:12 
GeneralDebug Assertion Failed due to image list Pin
Binayak12-Aug-03 13:50
Binayak12-Aug-03 13:50 
Hi,

In my program I keep getting this error whenever I move my dialog or, OnOK and OnCancel.

It says:

Debug Assertion Failed.
File: winctrl2.cpp
Line: 1202

In winctrl2.cpp I have gone to the line 1202:

BOOL CImageList::Attach(HIMAGELIST hImageList)
{
1202: ASSERT(m_hImageList == NULL); // only attach once, detach on destroy
ASSERT(FromHandlePermanent(hImageList) == NULL);

if (hImageList == NULL)
return FALSE;

CHandleMap* pMap = afxMapHIMAGELIST(TRUE);
ASSERT(pMap != NULL);

pMap->SetPermanent(m_hImageList = hImageList, this);
return TRUE;
}

It has something to do with the ImgaeList that I added to the Tree control in my program.
I added the tree control like this:

m_nTree.SetImageList(&m_ImageList, TVSIL_NORMAL);

In ONOK and OnCancel I even added following line:
m_ImageList.Detach();

Still I keep getting the assertion error.

Can anybody help please?

Thanks,
Binayak


GeneralRe: Debug Assertion Failed due to image list Pin
Anonymous12-Aug-03 14:10
Anonymous12-Aug-03 14:10 
GeneralRe: Debug Assertion Failed due to image list Pin
Anonymous12-Aug-03 15:01
Anonymous12-Aug-03 15:01 
GeneralRe: Debug Assertion Failed due to image list Pin
jhwurmbach12-Aug-03 23:07
jhwurmbach12-Aug-03 23:07 
GeneralRe: Debug Assertion Failed due to image list Pin
Binayak13-Aug-03 7:22
Binayak13-Aug-03 7:22 
GeneralRe: Debug Assertion Failed due to image list Pin
jhwurmbach13-Aug-03 21:13
jhwurmbach13-Aug-03 21:13 
GeneralRe: Debug Assertion Failed due to image list Pin
Binayak14-Aug-03 7:21
Binayak14-Aug-03 7:21 
GeneralGetting size of array in a func ! Pin
Hadi Rezaee12-Aug-03 12:19
Hadi Rezaee12-Aug-03 12:19 
GeneralRe: Getting size of array in a func ! Pin
Dave Bryant12-Aug-03 12:28
Dave Bryant12-Aug-03 12:28 
GeneralRe: Getting size of array in a func ! Pin
Hadi Rezaee12-Aug-03 13:03
Hadi Rezaee12-Aug-03 13:03 
GeneralRe: Getting size of array in a func ! Pin
FlyingDancer12-Aug-03 15:39
FlyingDancer12-Aug-03 15:39 
GeneralRe: Getting size of array in a func ! Pin
jhwurmbach12-Aug-03 23:11
jhwurmbach12-Aug-03 23:11 
GeneralGDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 11:57
Hosam Aly Mahmoud12-Aug-03 11:57 
GeneralRe: GDI: Background image Pin
HPSI12-Aug-03 13:15
HPSI12-Aug-03 13:15 
GeneralRe: GDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 17:54
Hosam Aly Mahmoud12-Aug-03 17:54 
GeneralRe: GDI: Background image Pin
Anonymous12-Aug-03 14:18
Anonymous12-Aug-03 14:18 
GeneralRe: GDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 17:59
Hosam Aly Mahmoud12-Aug-03 17:59 
GeneralMemory Pin
Hosam Aly Mahmoud12-Aug-03 11:53
Hosam Aly Mahmoud12-Aug-03 11:53 

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.