PMView.com

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Crashing Destroys File Being Converted, If PMView crashes when a file is being converted, it is destroyed
Mark_Henigan
post Jan 9 2012, 02:53 AM
Post #1


Forum Member


Group: Members
Posts: 11
Joined: 20-January 06
Member No.: 205



If PMView crashes when a file is being batch converted and being replaced by the converted image, e.g., by a 'Quick Script' for cropping, it is destroyed. This has happened most often when insufficient space was available on the target disk as well as for other reasons involving either PMView or another application that freezes the desktop. The original file is irretrievable because, I believe, of PMView's otherwise excellent memory and INI file management that leaves no wasted space on the disk and no useless entries in INI files.

I realize that I could always convert in a manner that does not overwrite the original. But, a prohibitive amount of effort would be required to delete the original files. Any other suggestions?

Thanks for your thoughts.

- Mark

Go to the top of the page
 
+Quote Post
Peter
post Jan 10 2012, 03:13 PM
Post #2


Forum Member


Group: Admin
Posts: 672
Joined: 14-March 00
From: Wilmington, North Carolina
Member No.: 3



PMView writes the data to a temporary file. Once that is successful, the old file is deleted and the temporary file is moved (renamed if on the same drive, otherwise copied & deleted) to the name of the original file.

If a crash happens in between the deletion and copying, then you will end up with a corrupt file. One way to minimize this from happening is to put your TMP and TEMP to point to the same drive where you work (in this case the temporary file can simply be moved instead of copy+delete).


--------------------
Peter Nielsen (peter@pmview.com) "If you can dream it, you can do it" JFK.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28th March 2024 - 07:03 AM