Environment
Platform - VC 2005, Window server 2003
Hi,
We have developed multithreaded service application which can run 24x7. I
have used two machines to run test. First machine (M1) on which service is
running.
Second machine (M2) on which Microsoft Access Database and half million text
file are placed. More than 20GB of disk space are available on both
machines.
Using API GetFileAttributes() to check directory is present on network
machine or not.
More than one thread from Machine(M1) checks for a directory is present on
machine(M2) or not.
This process is working for 30 to 60 minuts. After that program is returning
error "The specified network name is no longer available" when try to check
perticular directory is exist on network machine.
Calling CoInitializeEx(NULL,COINIT_MULTITHREADED) and CoUninitialize() when
thread start and end respectively.
It will be great help if I get response from someone to fix error "The
specified network name is no longer available" occurred during call of API
GetFileAttributes().
Thanks in advance,
vijay
Bookmarks