Wish This is the third time B4A has crashed and lost a full days worth of code

Discussion in 'Bugs & wishlist' started by NeoTechni, May 13, 2015.

  1. NeoTechni

    NeoTechni Well-Known Member Licensed User

    Please make it auto save every X minutes to a backup folder!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    When did it crash?

    Make sure that the "auto save before compilation" option is checked.
     
    NJDude likes this.
  3. NeoTechni

    NeoTechni Well-Known Member Licensed User

    It is checked. But that only saves if it survives a compile. An automatic timer that saves to a backup folder would be much better. Especially if it saves whenever you switched tabs or windows too.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    If this option is checked then the project is saved before compilation starts. It doesn't matter whether compilation succeeded or not.

    What happened that caused the IDE to crash and the data to be lost? Didn't you save the project at all for several days?
     
  5. NeoTechni

    NeoTechni Well-Known Member Licensed User

    But again, that requires me to trigger it. A timer would not. It should happen automatically. Many major editing programs like Word/Photoshop/etc do that.

    I don't know. But a timer-based backup save would solve whatever problem it was.

    No. I was porting a large chunk of VB6 code so it wasn't compilable. And I don't assume the program will crash.
     
  6. barx

    barx Well-Known Member Licensed User


    So would saving the project once in a while manually. Let's face it is not a huge task.......


    If it was 'that' important and took that long, common sense would tell you to play it safe.
     
    Cableguy, MikeH and thedesolatesoul like this.
  7. NeoTechni

    NeoTechni Well-Known Member Licensed User

    And yet Microsoft/Adobe/etc have failsafes.

    Adding an automatic backup based on a timer/switching tabs/windows should be worth it regardless.
    When I'm doing a ton of programming without compiling, I don't think of saving. And I shouldn't have to plan for the program to fail. The program should plan for it.

    Frankly it pisses me off even more than losing the code that people are saying "well you should have planned for that".
    Common sense is you build the program to solve problems the user may have, not blame the user for them.
    You build the program for the user, not the user for the program.
     
  8. thedesolatesoul

    thedesolatesoul Expert Licensed User

    had the program automated we would have some other user complaining that autosave overwrote changes he didn't want to do.
    then we end up adding a toggle whether to autosave or not, which would again not solve your problem.
    either we end up doing what MS Word does and auto save in a temporary copy.
    what is more important is why it crashed 3 times as I have never had a single crash.
    I'm going to also add the importance of backups as you never know when your gear fails you.
     
  9. NeoTechni

    NeoTechni Well-Known Member Licensed User

    That's why I said "save to a backup folder". It won't copy it from the backup to the real one till you actually save.
     
    thedesolatesoul likes this.
  10. Erel

    Erel Administrator Staff Member Licensed User

    BTW, I do plan to add an automatic backup to B4X.

    I'm asking these questions as I want to try to find out what caused the IDE to crash. The IDE normally doesn't crash. There are computers here that run one or more IDEs for weeks and never crash.
     
  11. NeoTechni

    NeoTechni Well-Known Member Licensed User

    Thank you. I dont know why it crashed. It might have been the computer itself. But the effect and the solution are the same.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    This is not what we understand from your thread title: "This is the third time B4A has crashed and lost a full days worth of code"
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice