Opening and closing a file on a Novell network using CFile 
Author Message
 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



Tue, 16 Apr 2002 03:00:00 GMT  
 Opening and closing a file on a Novell network using CFile
Bill!

You are sure you are not running into some kind of timing problem? Will it
help - or is it possible - to wait a while to reopen the file, or perhaps
try to open it a few times?

Johan Rosengren
Responsable Informatique
PACTA S.A.



Quote:
> 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



Wed, 17 Apr 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Slow CFile::Open on Novell

2. CFile can't read file's update lie in novell

3. CFile::Seek and CFile::Read over the network

4. how to close network resource not open by you

5. CFile::Open asserts on CFile::typeText

6. CFile sharing on Novell server

7. CFile file closing

8. CFile::Open using results of CFileDialog

9. Catching File->Open and File->Close

10. Looking for CFile method to detect when file is already open

11. why same CFile object cannot open two different file

12. CFile: Checking if file is open

 

 
Powered by phpBB® Forum Software