Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running out of handles in VFP3.0
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00174428
Message ID:
00174430
Views:
24
>I'm getting an exception error in NT4.0 Server and Win98 when moving around in a screen which requeries tables and runs a few selects. The problem was originally related to one listbox which was bound to a table whose name showed up in the dump from Dr. Watson. I removed the table from the source of the listbox and the problem went away. Now it's back again. After moving around in the form for a while, closing the form (via the X) causes the same exception error. I ran the performance monitor behind it and saw the file handles spike as I was closing the form down but at the same time as Dr Watson was coming up. There isn't any code anywhere in there that would run as the form closes. It also seems to be eating up my virtual memory. After having it go down about a half dozen times, NT popped up with a Virtual Memory Low message. Right now it's using about 142mb of virtual mem. I'm running on 64mb of RAM and the vram is never that high. I've got 3425 handles according to the task
>manager. I'm not sure if that is usage or available though. Anyhow, i've looked into the file handles bug with 3.0 and I get a similar error. So, being as there is no code of mine that is run at the time that it releases the form, how can I fix this? Any ideas?
>

In order to have ideas, we need some clues. For starters, what version of VFP is being used? You mention both NT Server and Win98. Is the app being run under Win98, accessing files residing on an NT Server system, or does this happen running the app under either operating system? What is the actual error reported (there are lots of things called exception errors; the error code recorded by Dr. Watson would provide that information.

Some basic information about both the software and hardware environments would be helpful At a minimum, the version and build number of the operating system (ie NT Server 4.0 build 1381 SP4, Win98 build 1998). Is IE 4 installed? Are you running under Active Desktop? Anything else running in the background (anti-virus monitors? email? IIS4 up and active? You get the idea.)

What types of handles are the problem? Under Windows, all God's children got a handle - windows, controls, open files, processes, threads, memory blocks; if you can reference it, there's probably a handle associated with it somewhere. 3425 handles as a total of all handles for all objects of all types isn't unreasonable; 3425 open file handles is a different matter...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform