Sharing newly created files is slow between windows 7 computers
New files written into a shared folder on a windows 7 computer are not recognized immediately by a C/C++ program running in another window7 computer using the open or _stat functions. It take nearly 10 seconds to open a newly created file from another windows 7 computer. If the either computer is running XP, new files are recognized immediately. If the shared folder is being actively displayed on the client computer (computer running the c/c++ program), newly created files are recognized in about one second (same time as it takes for the new file to show up in folder window). If the shared file(s) exist when the c/c++ program starts, the files are accessed immediately. The c/c++ program is build with 2008.net. My normal program is complicated and uses MFC. I made a simple Console Application that just tries to Open or _Stat (get file status). Both programs act the same. That is newly created files on the other computer are not recognized for about 10 seconds. I have gotten past all the network access, permissions, etc. of Windows7. It works just like my XP systems, except for this slow recognition of new files.
July 6th, 2010 4:18pm

More information. Just to see if my problem is related to my window7 computers/network configuration, if got a friend with another company, run my test programs on his windows 7 machines. Exact same result. Newly created files are not recognized by the client computer for 10 seconds. And if the client computer has a window open displaying the shared folder, newly created files are recognized in about 1 second.
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2010 8:48pm

Are you the developer of the program? May be the program uses NTLM for authentication. In Windows 7 the default NTLM level is NTLMv2. If you are the developer, I suggest you discuss in our MSDN forum. .NET Development CategoryPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
July 8th, 2010 11:02am

Yes, it is my program. it was developed with visual studio c++ 2008. the test program that illustrates the delay is a 20 line console application. I would not know if my program uses NTLM authentication. I could not find out how to change NTLM level on Windows 7
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2010 7:58pm

thanx, I will just give up for now. If I view the shared folder of the host windows 7 computer from one window on my client windows 7 computer, my program can access newly created files in one second, which is fast enough for now. It seems stupid that the windows explorer can see newly created files in one second, but my program has to wait 10 seconds.
July 9th, 2010 7:37pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics