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

C / C++ / MFC

 
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 
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 
You could try to protect the adding of the image list with a bool variable:
In your dialog, add a bool variable firstTime, set to true in constructor.
Modify the part where you add the imagelist to look like this:
if (firstTime)
{
   m_Tree.SetImageList(&m_TreeImageList, TVSIL_NORMAL);
   firstTime = false;
}
Additionally, I think you can drop the calls to detach(), as this will be done automagically when the tree goes away.




Who is 'General Failure'? And why is he reading my harddisk?!?
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 
GeneralRe: Memory Pin
John M. Drescher12-Aug-03 12:32
John M. Drescher12-Aug-03 12:32 
GeneralRe: Memory Pin
Hosam Aly Mahmoud12-Aug-03 18:12
Hosam Aly Mahmoud12-Aug-03 18:12 
GeneralRe: Memory (EDITED) Pin
John M. Drescher12-Aug-03 19:15
John M. Drescher12-Aug-03 19:15 

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.