Jim Lawrence
accessd at shaw.ca
Sun Feb 6 15:45:20 CST 2005
Hi All: This is an OT subject but it has to do with opening and closing files. This application that I wrote opens files using the CreateFile API and does a fine job after the process is finished the CloseHandle API is used to tidy up and everything works fine. ..but if the program is inadvertently directly closed, without going through the appropriate step the file previously opened is not closed correctly. The file can now not be opened by any apparent method and it requires a computer boot to unlock it. (The file in question is not damaged in anyway but the system keeps the file locked.) Does anyone know how to open/close such a problem file? Any suggestions would be greatly appreciated. Code suggestions would of course be best. MTIA Jim PS Wrote a little pseudo editor that can view a file of any size and it works great; with one exception.