I know this is a probably a stupid question, and I freely admit I know nothing about
CDHtmlDialog. As a further caveat, my system is old and flakey.
Question: Does this
{ if (m_pMiniMule) { if (!m_pMiniMule->IsInCallback()) // for safety { m_pMiniMule->DestroyWindow(); delete m_pMiniMule; m_pMiniMule = NULL; } else ASSERT(0); }
protect minimule from begin destroyed after it is created and before it it shown/visible? Given:
//m_pMiniMule->ShowWindow(SW_SHOW); // do not explicitly show the window, it will do that for itself when it's ready..
As more than once when my system was compiling or doing a lot of work I have given the emule systray icon a burst of left clicks and it's crashed with at access violation, when I have debugged it, it looked a little llike the minimule object had been accessed after it was destroyed....
Probably, just my flakey old system, it does well though as it's run for years and is hardly ever turned off...
This post has been edited by BlueSonicBoy: 18 October 2005 - 01:47 AM