Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win 3.11 vs. Win 95 & Too Many Files Open
Message
 
À
26/08/1997 17:21:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00046903
Message ID:
00047060
Vues:
49
>>I've got a client who has Win 3.11 on her machine. She needs it to accommodate an outdated A/R system which will hopefully be replaced by the end of first quarter, next year, but until then, we have to make her VFP v.3 program work.
>>
>>Sometimes, she goes into the VFP program (a stand-alone EXE) and is able to get through all of her functions for hours. Other times she gets "Too Many Files Open" when she's doing certain tasks. However, if she runs the same networked product from a co-worker's machine, the one with Win 95, she NEVER has a problem. I figured that Win 95 uses separate sessions for the max files or something, and Win 3.11 pools from the same configuration for everything, but I'm not sure. I have been able to take care of the main problems with cleaner code (using arrays instead of cursors to populate combo boxes, etc.), but she still runs into the problem 2-3 times a day. Sometimes she's only in there for an hour before she receives them, even if she only does one or two things. She receives them more readily if she's been in and out of other products while running mine.
>>
>>All of my screens use the data environment whenever possible. Sometimes, SELECT statements are used to populate combo boxes, but the original file (SELECT Origfile.myfield1, myfield2 FROM Origfile INTO CURSOR myCursor) is always closed after that. I am under the ASSumption that cursors will close themselves when they are no longer in use--ie, when the form is closed, but perhaps that's where I'm wrong.
>>
>>I just ran a couple of the larger screens, the ones with more combo boxes which SELECT into cursors or arrays, and found, using DISPLAY STATUS, that it says that there are no files open when I leave those screens. Of course, this is what I want.
>>
>>Is it possible that DISP STAT isn't giving me the real picture? Is it possible that cursors can stay open even after the combo box (with the form) is destroyed? Is it possible that some of my data environment files are hanging open?
>>
>>Thanx,
>>JR
>JR,
>If this app is running on a Novell Network, open the PC's net.cfg file and add 'File Handles = nn' (nn being the number of files). I usually set them to the same amount as the files in the config.sys.
>
>Hope this helps

Thank you, Bill, but the two of these added together already equal 250 or 255. If you can think of anything else, pls let me know (I should have already explained in the original question about the fact that the config.sys & network cfg were checked first--it was so long ago, I forgot! Thanx for your help, everyone--I'll attempt to fix w/George's SMARTDRV suggestion and let you all know how it went.
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com
(941) 743-0108
(800) 246-5488
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform