By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

UserControl leak in MFCWinForms

P: n/a

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.

I assume the sample is missing some code to perform the closure. What is


Apr 20 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.