IOException is back (or a bit more of it)
Xojo 2015r1
El Capitan .2
I already told you about the IOException I got when trying to save a file using BinaryStream.
Of course, because I am coming back here, I am not satisfied with the answers I got.
I was also a bit angry and wanted to know what happens.
Minutes ago, I called into that trap, again. I had Xojo (2015r1) open, TextEdit, Preview (some other ?); FireFox and/or Safari was also at a time in that open session was launched, but close before the crash occurred.
It was a crash that happens after only a couple of minutes and a some (around 10) changes, I wanted to save the ‘new’ file contents and get that crash.
I ran the project in Xojos IDE, redo the same changes (since I recall what change Ive done ), then I quit every application and shutdown the laptop.
After dinner, I power on my MacBook Pro, run the application (the one who crashed earlier with an IOException), load a cvs file and try to export it: I added a suffix to not write over the original file.
I got a new file.
So, the problem is somewhere, but where, why and most important: is there’s a bug in my project ?
For the later question, I do not get an IOException when I was running the project in the IDE. My next move will be to build a brand new standalone (still with 2015r1) and work with this application (but I will keep the two occurrences of the same build, just in case).
[Late Breaking News]
- I had a crash minutes ago (IOException error number: -1407). The conditions were:
Standard boot,
run from the latest project,
run a previous version (so I can merge some cvs files)
drop the files onto the application(s) icon(s),
copy / paste between both applications.
At last, export as cvs and the screen shot below appears. I will restart that and copy the whole new data contents before trying to save the new data (and try to paste it after a reboot)
- I dropped onto the icon of the latest stand alone a cvs file and tried to save it: I got the crash
[TextEdit launched]. I tried to save the data loaded in the old stand alone: no crash !
Why so much hate ???
I rebuild the compilation of my six files into one (load files one at a time, copy / paste: copy the whole, Save, IOException THEN at save time. I pasted the whole into the old stand alone and save: it worked. The old stand alone who do not worked yesterday !!!
Last clue: I load the brand new stand alone, pasted the whole data into the front window, Export: I got the file without crash. differences with all previous attempts: I use only one paste into the application AND this time (unlike the first try), the new stand alone is launched after the old standalone.
Time for breakfast (and calm my hungry / cool my anger
).
[/Late Breaking News]
Nota: I used the project running it in the IDE intensively to import data (file names) from a specific folder that are NthFielded [!] and placed into a ListBox, then saved to disk as txt, then loaded into the same project, different window and modified at will (go to the Finder, modify one or many file names, back to the list and search anomalies, etc.
I also made many adjustments on the way the data from the file names are set into the ListBox at read time.
So, I had occasions to get IOExceptions, in the two or three hours I was working with these data. I also appended a lot of txt files in a ListBox without troubles.
I nearly forgot: both the Xojo project and the folders I was working on are located in an external hard disk (WD Elements 2TB with 2 partitions), the txt files are stored in the internal SSD.
PS: I am working with 2,000 (3,000 ?) files, but only four fields (plus the file extension and file size) in each file name. The process I follow is faster than checking using the eyes all these file names to search a double space, a missing space in the field separators (" - " without the quotes). An error in the file name is easy to get following these operations. Also, it is good to have this to do: it help me checking my code to dispatch the data into the ListBox.
The csv file have actually 1,236 Rows (on 8 columns, three of them holds dates: 10 chars long )