Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

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

Report
Possible Windows BUG found, need help! Posted by saharovm on 15 Dec 2001 at 6:23 PM
Hello, world!

I got a VERY STRANGE PROBLEM, possibly it's another WINDOWS BUG. Here it is.
I wrote a DOS program which automatically renames the files using a constant
pattern and an incrementing index number, e.g. FILE0000.EXT, FILE0001.EXT and
so on. File searching is done thru findfirst()..findnext() cycle.

Under DOS all's OK, but under Win9x/2000 my program tries to rename files
which were ALREADY RENAMED! I found a rather stupid solution to prevent this
(remember 1st renamed file name, then if it found again, skip it), but it
doesn't work for Win32 version. I suppose that Windows disk caching isn't
a cause (I've tried a buffer flush between renames), but I'm not sure.

Well, I don't know is it Windows or my own bug , but couldn't you help
me, if you know why this happens?

Mike Saharov, saharovm@mtu-net.ru

Report
Re: Possible Windows BUG found, need help! Posted by Manning on 15 Dec 2001 at 8:16 PM
If you could post your findfirst/findnext loop that would help.



 

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.