CRASH simulation
I experienced something similar!
Last Sunday I performed the Windows update and the requested restart killed beside others appl. the running mt4 and the editor.
After the restart of the pc at least two of my indicator source files were empty, completely white, but opened in the editor - really strange.
Fortunately I have saved everything and I could get back the code!
Gooly
Not quite the problem i'm having, but annoying none the less.
Anybody any recent experience with Crashing EAs and how to recover?
I have my EA protected for a crash by means of a file (crash.bin).
While running the EA it writes the crash.bin file every 30s, and it holds important data for when having to recover. If the EA is removed on purpose then the crash.bin file is deleted as part of the OnDeInit() routine, if MT4 crashes however, the OnInit() checks the existence of the crash.bin upon startup and when it exists, it picks it up, reads it and starts recovering. To test it, i crash MT4 intentionally using TaskManager (taskmgr.exe -->MetaTrader-->End task) and then restarting MT4.
All worked flawlessly until... build 910 (12nov15)!! Now, when crashing MT4 using procedure mentioned above, MT4 somehow manages to delete the crash.bin file.... That is completely new. And upon restarting MT4 after such 'crash', it starts anew assuming all is well (as if the EA was brought down correctly). So no recovery mode and now all is starting to screw up. I'm sure that when i cut the power, the behavior will be again different, but not all crashes are power cuts.
any thoughts or suggestions how i can circumvent this issue?