all groups > vb.net controls > july 2005 >
You're in the

vb.net controls

group:

Slower and Slower



Slower and Slower George Shubin
7/25/2005 9:21:40 AM
vb.net controls: Has anyone experienced significant slowdown in the apps the longer they run?
I have a VB.Net app the runs fairly "snappy" for about 10 minutes of
constant use, then a significant drop-off begins until it becomes
unresponsive. Another head-scratcher is if the app is simply started and
left alone, after 15 minutes of no activity, it reacts very slowly to user
actions.

I have tried placing debug messages with timing info in places in my code
where I though there would be a potential slow response (mostly data
access), but those areas consistently run quickly. It seems to be screen
refreshes or changes to the current form that is causing the slowness. Just
moving a toolbar from a docked position to a floating position is enough to
cause a wait of about 45 to 60 seconds before the screen repaints.

Any ideas of what's going on? I thought of memory leaks and I've gone
through the code and tried to make sure all objects are taken care of. What
about resource leaks? How does one deal with those? My program is running
on about 10 computers with P4 3.2 GHz cpus and 1 GB RAM. Data access is
across a LAN to an Access 2000 database. There's nothing fancy about what
we're doing, just simple data entry and validation, and some reporting.

GS

Re: Slower and Slower md
7/25/2005 1:21:50 PM
I have an app that did this, and what I found was it was creating objects
faster than garbage collection was cleaning them up. What I did was add a
GC.Collect in the loop it runs constantly, and that fixed the problem.

[quoted text, click to view]

Re: Slower and Slower George Shubin
7/26/2005 8:58:40 AM
Thanks for the suggestion, but it didn't help my situation.

GS


[quoted text, click to view]

AddThis Social Bookmark Button