>This is a new one for me, so I thought I'd see if someone else had came across it. I have a pretty small application that sites on the server and connects to another system via tcp/ip that it connects to at startup. Every couple minutes, the system looks in a sql database to see if there are any new records that haven't been sent to the other system, if so, it formats them and then sends it across the tcp/ip connection. This process is just based off a timer on a form that runs every 2 minutes. This all works. Today, I got an e-mail from one of their IT guys say the application was causing issues with RPC because it was using all the handles. He sent me a screen shot from the taskmgr showing our exe using 16K plus handles. I reset the application on their server, and the handles start at 179 and for the last few hours, that value hasn't changed, and in the mean time, we've sent a couple hundred transactions through the tcp/ip connection.
>
>So, the real question is, does anyone know how I can monitor (internally) the handles, or what might be a cause for the large increase in handles.
I just have a few SWAGs:
- VFP9 SP1 fixed a bug, "Previewing a report with an image located on the disk causes a GDI handle leak each time the preview is refreshed". I can't recall if VFP8 uses GDI for images, or if you're even producing reports
- I seem to recall a long time ago (maybe VFP5) that previewing reports would leak file handles. I think that was fixed long before VFP8, however
- There was a thread here discussing file handle leaks with a 3rd party FLL: Thread#
1025081- Rick Strahl has an old article that mentions file leaks on WinInet operations:
http://www.west-wind.com/presentations/wchttp.htm . This may have been fixed, but if you're using wwIPStuff maybe you could ask Rick
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up