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] "George Shubin" <dx@dxonline.com> wrote in message
news:%23w$T7TTkFHA.3608@TK2MSFTNGP12.phx.gbl...
> 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
>