Click here to Skip to main content
16,015,697 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL threading problem Pin
Josh Gray1-Dec-03 16:03
Josh Gray1-Dec-03 16:03 
Generalwsnprintf() method __defined_.h_file Pin
derik_konark29-Nov-03 23:50
derik_konark29-Nov-03 23:50 
GeneralType of Control Pane Pin
Danis Solovyov27-Nov-03 22:33
sussDanis Solovyov27-Nov-03 22:33 
Generalvector question Pin
Steve Messer27-Nov-03 10:11
Steve Messer27-Nov-03 10:11 
GeneralRe: vector question Pin
Christian Graus27-Nov-03 10:19
protectorChristian Graus27-Nov-03 10:19 
GeneralRe: vector question Pin
Steve Messer27-Nov-03 11:02
Steve Messer27-Nov-03 11:02 
GeneralRe: vector question Pin
Christian Graus27-Nov-03 11:40
protectorChristian Graus27-Nov-03 11:40 
GeneralRe: vector question Pin
Steve Messer27-Nov-03 12:19
Steve Messer27-Nov-03 12:19 
Christian,

I have tryed these sugguestions already. I can't image what is happening. This code used to work.

When it worked I was creating all my buttons in OnInitDialog() and then upon exiting I call

void CHTPCCOREDlg::Cleanup()
{
if ( m_pMemGraphics != NULL )
{
delete m_pMemGraphics;
m_pMemGraphics = NULL;
}
if ( m_pMemBitmap != NULL )
{
::delete m_pMemBitmap;
m_pMemBitmap = NULL;
}
if ( m_pCachedBitmap != NULL)
{
::delete m_pCachedBitmap;
m_pCachedBitmap = NULL;
}
KillTimer( UPDATETIME );
KillTimer( CHECKKEYS );
KillTimer( MOUSEMOVE );

int count = vButtons.size();
if( count > 0 )
{
std::vector<Button*>::iterator itClean;
for (itClean = vButtons.begin(); itClean != vButtons.end(); ++itClean)
{
delete *itClean;
}
vButtons.clear();
}

Gdiplus::GdiplusShutdown(m_gdiplusToken);
}

It was all working fine and then I decided to use XML to allow the buttons to be user definable.
In stead of creating my buttons in OnInitDialog() I am now creating them in the start handler while parsing the configuration file. That should be the only difference and now the code leaks.

Any more suggestions?


-Steve

GeneralRe: vector question Pin
Steve Messer27-Nov-03 14:09
Steve Messer27-Nov-03 14:09 
GeneralRe: vector question Pin
Christian Graus27-Nov-03 15:08
protectorChristian Graus27-Nov-03 15:08 
GeneralRe: vector question Pin
Steve Messer27-Nov-03 15:36
Steve Messer27-Nov-03 15:36 
GeneralRe: vector question Pin
Joaquín M López Muñoz30-Nov-03 11:30
Joaquín M López Muñoz30-Nov-03 11:30 
GeneralRe: vector question Pin
Steve Messer1-Dec-03 7:03
Steve Messer1-Dec-03 7:03 
GeneralRe: vector question Pin
Joaquín M López Muñoz1-Dec-03 10:06
Joaquín M López Muñoz1-Dec-03 10:06 
GeneralRe: vector question Pin
Steve Messer1-Dec-03 11:37
Steve Messer1-Dec-03 11:37 
GeneralRe: vector question Pin
zhao wei4-Dec-03 20:41
zhao wei4-Dec-03 20:41 
GeneralRe: vector question Pin
Steve Messer5-Dec-03 10:10
Steve Messer5-Dec-03 10:10 
GeneralRe: vector question Pin
WREY9-Dec-03 4:16
WREY9-Dec-03 4:16 
GeneralRe: vector question Pin
Steve Messer9-Dec-03 6:11
Steve Messer9-Dec-03 6:11 
GeneralCCheckListBox and CListBoxImpl Pin
bryces26-Nov-03 20:05
bryces26-Nov-03 20:05 
GeneralRe: CCheckListBox and CListBoxImpl Pin
coge26-Nov-03 22:13
coge26-Nov-03 22:13 
GeneralRe: CCheckListBox and CListBoxImpl Pin
bryces26-Nov-03 22:36
bryces26-Nov-03 22:36 
GeneralRe: CCheckListBox and CListBoxImpl Pin
coge26-Nov-03 23:49
coge26-Nov-03 23:49 
GeneralRe: CCheckListBox and CListBoxImpl Pin
bryces27-Nov-03 1:27
bryces27-Nov-03 1:27 
GeneralRe: CCheckListBox and CListBoxImpl Pin
coge27-Nov-03 9:59
coge27-Nov-03 9:59 

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.