Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreate() function. Pin
Neha12-Aug-03 22:16
Neha12-Aug-03 22:16 
GeneralRe: Create() function. Pin
jhwurmbach13-Aug-03 2:45
jhwurmbach13-Aug-03 2:45 
GeneralSave Image Pin
henli12-Aug-03 21:43
henli12-Aug-03 21:43 
GeneralRefresh problem Pin
Neha12-Aug-03 20:30
Neha12-Aug-03 20:30 
GeneralRe: Refresh problem Pin
Jörgen Sigvardsson12-Aug-03 22:56
Jörgen Sigvardsson12-Aug-03 22:56 
QuestionHow to make Installation Program to load ATL Com Add-in(.dll) with MS Outlook ? Pin
Atif Bashir12-Aug-03 20:15
Atif Bashir12-Aug-03 20:15 
GeneralMFC SeriesCollection question Pin
Mardigin12-Aug-03 19:44
Mardigin12-Aug-03 19:44 
GeneralRe: MFC SeriesCollection question Pin
Mardigin12-Aug-03 20:23
Mardigin12-Aug-03 20:23 
GeneralRe: MFC SeriesCollection question Pin
Ryan Binns13-Aug-03 0:35
Ryan Binns13-Aug-03 0:35 
GeneralDlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 19:21
Hellin12-Aug-03 19:21 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 20:04
Hellin12-Aug-03 20:04 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Kyudos12-Aug-03 21:48
Kyudos12-Aug-03 21:48 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 22:07
Hellin12-Aug-03 22:07 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Kyudos12-Aug-03 22:26
Kyudos12-Aug-03 22:26 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 22:36
Hellin12-Aug-03 22:36 
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 

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.