Closed imszy closed 3 years ago
The recommended practice for forms is to: wrap your form creation in a using.
i.e.
using (var startAndCheck = serviceProvider.GetRequiredService<CheckForNewerVersion>())
{
startAndCheck.ShowInTaskbar = true;
if (startAndCheck.ShowDialog() != DialogResult.OK)
{
Add(@"Exiting");
return;
}
}
It works. Thank you so much! @Smurf-IV
Thanks @Smurf-IV response! His solution is effective.
Great - Please close this issue then ;-)
Oh, yes. Thank you!
Click a button to show another KryptonForm that have many KryptonTextbox controls (about 50 controls). Click the button, then close the form many times. The memory keeps increasing and it will throw OutOfMemoryException after 10minutes.
Anyone knows how to fix it?