Hi,
I have used the MFCWinForms sample as the basis for a CWinFormsView view
in an MFc application to host a UserControl. It all works OK, except for the
View closing. Even in the MFCWinForms sample the UserControl is never
deleted. Opening a View and closing it repeatedly results in a memory leak.
When the application is terminated, all the UserControls are deleted at that
time. Calling System::GC::Collect() does not help.
http://www.microsoft.com/downloads/d...displaylang=en
I assume the sample is missing some code to perform the closure. What is
missing?
thanks,