
Opening and closing a file on a Novell network using CFile
I am working with an app that uses CFile to open and close a file on a
network (Novell). We are using the CFile contructor <new CFile
(lpszPathName, CFile::modeRead | CFile::shareExclusive | CFile::typeBinary)>
to open the file and Close() to close it. The problem is that when we close
the file the lock on the file is not always released. Thus giving us a
share violation when we try to reopen the file on the network. This does
not happen when the file is on the users local drive.
Any help would be greatly appreciated.
Thank you
Bill Large