
Thanks, Adrian. I will set up automatic save. The good news is that I realized that the code I wrote yesterday was an incomplete solution anyway, so I need to rewrite it no matter what. (Well, that's sort of good news.) David On Thu, 9 Aug 2012, Oxygen XML Editor Support wrote:
Hello David,
Unfortunately Oxygen does not have a contingency plan for this situation, at least not after the event happened. The content of the opened files is modified in memory and there is no backup or temporary copy on disk of this content, if the file was not saved. So if the GUI is stuck, you cannot retrieve the content unless the application finishes doing whatever it is that it is trying to do or fails.
In theory, for mission critical files you could probably connect to Oxygen with a Java debugger and sweep through the Java objects in Oxygen's memory until you find the one that holds the file you wanted to rescue. But this is a bit overkill and will probably only yield results for smaller files, which are not severely chunked in memory.
A way to prevent such situations (which we hope are rare) is to activate the automatic save feature from: Options > Preferences, Editor > Open/Save, Enable automatic save. You can also adjust the save interval. This way you will at least have a copy of the file saved a few minutes before the application got stuck.
Regards, Adrian
Adrian Buza oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
David Sewell wrote:
oXygen users,
I'm running oXygen 13.2 on a Mac. I was in the middle of editing a long XML file and did a global search-and-replace that had the effect of creating ill-formed XML. Now oXygen is spinning endlessly, running one core at 100% CPU, apparently trying to parse the file.
I was also editing some XQuery code in a couple of tabs that I had not saved to disk yet. oXygen won't let me open those tabs as it is trying to complete its Find/Replace. Any ideas on how I can retrieve the code? If I force-quit the oXygen process, would the data be written anywhere that it could be retrieved?
this is not mission-critical but if there is a way to retrieve the content it would be nice.
DS
-- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/