I noticed something weird happening several times recently. When closing a file, I get a window asking if the file should be saved. If I click yes, the console at the bottom of the screen indicates a save operation has been done. But the Save is done instantaneously, even for files that usually require several dozens of seconds to save. After that, PrePoMax doesn’t close on its own (which is what one would expect after a Save on closing). If I try to close PrePoMax again, the same window appears again. If I click yes the same behaviour repeats itself, if I click No, PrePoMax gets closed.
I also doubt the file actually gets saved, because I had this happen to me last night when closing a pmx file, and when opening it today, the changes I had made to it yesterday were gone. (I know, I should save manually frequently…).
I can’t reproduce it with a simple test case. I created a new model, added some features and saved the file. Then added some more features and clicked the button to close the window. I got prompt to save before closing. I selected “Yes” and PrePoMax closed immediately. After reopening it and opening the saved file, I can see all the changes made before closing the file.
Maybe it happens only with specific/larger models.
Yes sorry I haven’t yet noticed specific conditions where this happens, which is not really helpful for reproducing. Though I believe this has happened in files where I ran several different analyses, which means there are many heavy results (I have the “Save results in .pmx” option enabled).
Edit: I just noticed something on a file with only one analysis, but slightly heavy: when I quit, I got the prompt to save, clicked yes. Then it looked like the behaviour I described above was happening, but after a few seconds, PrePoMax closed. It could be that when saving through the quitting prompt, the file does get saved, but the saving operation is not blocking like a regular save operation, and there isn’t the green progress bar in the bottom left corner indicating a task is running.
Edit 2: yup, I can confirm that this is what happens. The file does get saved and Prepomax does close itself afterwards, yet the saving task is non-blocking and not visible. The saved message in the monitor at the bottom of the window is displayed at the beginning of the saving task and not at the end. Maybe it would make more sense to display it afterwards?
I have changed the behavior of the save on close feature. Now it shows the green progress bar while saving, also if saving is initiated from the close command.
The message logic in the output box remains the same. First, the command message is written to the box, and then the command starts. When I changed the behavior to put the message after the command finishes, the form closes before the message appears.
If the close button is clicked after saving starts and saving still runs, the message “Another task is running” appears.