Is closed and the protections against data corruption are lost. When the original file handle is closed, the mutex handle Meanwhile, another handle you forced closed was reusedĪs a mutex handle, which is used to help prevent data from beingĬorrupted. The logged information goes into the configuration file, Log file handle was closed and the handle reused for its configurationįile. Log some information, so it writes to its log file. The handle for the log file gets recycled as the Operation finally completes, and the search index service finally getsĪround to closing that handle it had open, but it ends up unwittinglyįile, say a configuration file for writing so it can update some Log file in order to record some information, and the handle to theĭeleted file is recycled as the handle to the log file. Gotten stuck temporarily and you want to delete the file, so you Suppose a search index service has a file open for indexing but has Just be very careful with closing handles it's even more dangerous than you'd think, because of handle recycling - if you close the file handle, and the program opens something else, that original file handle you closed may be reused for that "something else." And now guess what happens if the program continues, thinking it is working on the file (whose handle you closed), when in fact that file handle is now pointing to something else.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |