wxAxtiveX Memory Leak?
Brought to you by:
blackpaw
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.