• bleistift2@sopuli.xyzOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    It’s not a crash. It’s a graceful shutdown. I expected that to also shutdown my app gracefully.

    I’m actually trying to store the program state that hasn’t been persisted yet to disk. Good luck doing that after the next boot.

        • barsoap@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          16 days ago

          Easier to do than to get never-exercised edge-case code to work flawlessly. Are you sure you can’t just throw sqlite at the problem? It’s often overkill but, hey, it’s there on the shelf, might as well use it and I’ve seen it out-perform hand-rolled data structures. Non-persistent ones, written by very confident C coders. And remember crashes are unavoidable, if nothing else then someone can trip over the power cord.

          • bleistift2@sopuli.xyzOP
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            16 days ago

            You can’t know that from my issue description, but throwing a database at that problem really is ridiculous overkill.

            Still thanks for the suggestion