Menu

#1 wxAxtiveX Memory Leak?

open
nobody
None
5
2005-03-15
2005-03-15
No

I use wxActiveX to load an external ActiveX control.

I do load and unload this external ActiveX control
several times in the application and have it open more
than ones at the same time. This works all fine
including the wxActiveX::~wxActiveX call is executed
but the wxActiveX::~wxActiveX call does not give the
memory free the wxActiveX::wxActiveX call has allocated.

class CMyControl ( ...): wxActiveX( ...);

code sample:

CMyControl control1 = new CMyControl();
CMyControl control2 = new CMyControl();
CMyControl control3 = new CMyControl();
...
delete (control1);
.....
CMyControl control1 = new CMyControl();

delete (control1) does call wxActiveX::~wxActiveX but
the memory is not given free.

Discussion


Log in to post a comment.