Article # 284, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
HINT_APPLICATION_QUIT_ON_IACP_ALLOW_FILE_ACCESS isn't working.
Q. HINT_APPLICATION_QUIT_ON_IACP_ALLOW_FILE_ACCESS isn't working. My application is running with a document open. I then use Transfer to try to restore an earlier version of the data file, I get the message "Restore Error. Can't access the data in memory. Close the application for which you are restoring data and try again." If I try restoring a second time, the error message is not given. It properly restores the old data file. A. DocumentControl automatically handles IACP file access requests, so don't use HINT_APPLICATION_QUIT_ON_IACP_ALLOW_FILE_ACCESS. The problem with this hint is that it causes the application to shutdown, but the document gets closed near the end of the shutdown procedure. Because the application shutdown process is asynchronous, the document will most likely not be closed by the time Transfer receives feedback that the application is shutting down. NOTE: If your application stores datafile-specific information (such as a data cache), you will still have problems, because the datafile could be altered by the Transfer application, leaving your stored information incorrect. In this case, you should reset the information during MSG_GEN_DOCUMENT_CLOSE_FILE or MSG_GEN_DOCUMENT_REOPEN_FILE.