Georg Steigmeier
2009-03-03 11:07:01 UTC
Hi
I have a strange memory leak in my application running under CE 6.0. My
investigations showed that it has something to do with ActiveX controls and
starting/stopping threads.
Now I made a test application that has the same problem. It's a simple
dialog based application that uses MFC and has an ActiveX control on it
(application and ActiveX generated with the wizard). The application and the
ActiveX use MFC in a shared DLL. Now if a start a worker thread e.g. in an
event handler inside the dialog class, then I see that the available memory
shrinks (about 1600 bytes) after the thread stops. It doesn' matter if I use
CreateThread or AfxBeginThread to start the thread. Note that I don' do
anything inside the thread function, it just returns.
I don't have this problem if I remove the (dummy) ActiveX from the dialog.
There is also no leak if the ActiveX uses MFC in a static library.
Is there a problem inside MFC?
I have a strange memory leak in my application running under CE 6.0. My
investigations showed that it has something to do with ActiveX controls and
starting/stopping threads.
Now I made a test application that has the same problem. It's a simple
dialog based application that uses MFC and has an ActiveX control on it
(application and ActiveX generated with the wizard). The application and the
ActiveX use MFC in a shared DLL. Now if a start a worker thread e.g. in an
event handler inside the dialog class, then I see that the available memory
shrinks (about 1600 bytes) after the thread stops. It doesn' matter if I use
CreateThread or AfxBeginThread to start the thread. Note that I don' do
anything inside the thread function, it just returns.
I don't have this problem if I remove the (dummy) ActiveX from the dialog.
There is also no leak if the ActiveX uses MFC in a static library.
Is there a problem inside MFC?