Forms Slow down after 50 devices!!

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Hello,

I have written an windows forms application to test devices with a scanner.
Initially it brings up the device testing form under 3 seconds.
After testing say 50 devices it starts to crawl. It can take as much as 40
seconds to bring up the devicetesting form.

Device testing form has 2 tab pages, 5 combo boxes, 8 text boxes.

Thanks.
jay
 
Sounds like you are not disposing of your form properly. If your code looks
like this:

MyForm form = new MyForm();
form.ShowDialog();

try adding.
form.Dispose()


Also make sure SP2 is installed
 
Jay said:
Hello,

I have written an windows forms application to test devices with a scanner.
Initially it brings up the device testing form under 3 seconds.
After testing say 50 devices it starts to crawl. It can take as much as 40
seconds to bring up the devicetesting form.

Device testing form has 2 tab pages, 5 combo boxes, 8 text boxes.

Sounds like a potential 'memory leak' issue. Try making the form a
singleton and see if that helps.

Hilton
 
it makes a big difference actually.
when you are done with a form you want to dispose it and null it

Form1.Dispose();
if(Form1 != null)
Form1 = null;

remember you may also have other dispose/memory issues considering you are
probably using a Symbol scanner API that is fullllll of issues.

regards,
Jay
 
Back
Top