Client application slows down

  • Thread starter Thread starter Richard Sypriano
  • Start date Start date
R

Richard Sypriano

I have a WinForms client that accesses data through a .Net
service. If I run my regression test multiple times,
every time it runs about 40 seconds slower. I thought it
might be GC; so I inserted a GC.Collect() statement with
not change. If I close the application and run it again
the test is fast again. Any ideas?
 
It's very possible that the application you're testing has a memory leak,
or is not closing and disposing of resources that it's using when it's
done. It's impossible to say more without knowing more about exactly what
the application does.

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026?  If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.
 
-----Original Message-----
It's very possible that the application you're testing has a memory leak,
or is not closing and disposing of resources that it's using when it's
done. It's impossible to say more without knowing more about exactly what
the application does.

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026? If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03- 026.asp and/or to
visit Windows Update at
http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.

.
Thanks for the response.

Oops; I didn't know I could cause a memory leak. Are there
any articles on memory leaks in .Net? Can you give me an
example of one. Also are there any rules or articles about
when I need to disposing of resources?
 
There are many, many things that can cause memory leaks; a good overview of
troubleshooting them can be found in:

268343 Umdhtools.exe: How to Use Umdh.exe to Find Memory Leaks
http://support.microsoft.com/?id=268343

Regarding disposing of objects, in general, you should call the "close"
method on objects that support it, and then call the Dispose() method, as
soon as you know you no longer require the object. Simply letting objects
go out of scope is not sufficient to ensure proper cleanup by the garbage
collector.

Hope this information is helpful.

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026?  If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.
 
Back
Top