Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Edit User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.7 File Locking

With current versions of Objective Edit, the file is only opened for short bursts during the file read and file write processes and is immediately closed afterward. Since the file is no longer kept open for editing, there are no functions comparable to Objective Edit 1.0x's SECEdit::SetFileLocking() and SECEdit::GetFileLocking(). If you want to prevent behavior in which a user opens a file, makes many changes, and then is prevented from saving the changes because some other process locked the file, take a look at the following code.


Consider re-opening (locking) the file after writing and finally releasing the lock in the OnCloseDocument(). This will keep the file locked the entire time it is open for editing. Also, new files that are created will remain locked after they are saved and will be released only after they are closed.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.