Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Win 95 and FindFirstFile, FindClose Functions Posted by tester101 on 18 Dec 2000 at 11:01 AM
Hi,<br>
We have an application that runs on win95 and winnt.<br>
we use FindFirstFile, FindNextFile and FindClose calls to perform directory searches.<br>
<br>
Under WinNT, everything goes along fine, BUT only under win95, it looks like the File handles are not getting closed and we get EventID 2009 errors in the Event Log (Desc:&quot;The server could not expand a table because the table reached the maximum size&quot;).<br>
<br>
Can anyone please throw light on this matter.<br>
Thanks in advance,<br>
tester101. <br>



Edit Report
Re: Win 95 and FindFirstFile, FindClose Functions Posted by Justin on 20 Dec 2000 at 9:04 PM
This is just a wild stab in the dark, but are you checking to make sure you aren't searching the &quot;.&quot; and &quot;..&quot; folders with FindFirstFile and FindNextFile? If you are recursivly searching through folders without ignoring the &quot;.&quot; and &quot;..&quot; folders, it would more than likely freeze your program because your code would not stop recursing.<br>
<br>
Hope This Helps,<br>
Justin





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.