<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Eliot,<br>
      <br>
      On 4/18/2016 9:03 AM, Eliot Miranda wrote:<br>
    </div>
    <blockquote
      cite="mid:D86C5C66-AC55-4C1E-B7C9-152B57F32F2D@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div>Hi Denis,<br>
        <br>
      </div>
      <div><br>
        On Apr 18, 2016, at 1:07 AM, Denis Kudriashov &lt;<a
          moz-do-not-send="true" href="mailto:dionisiydk@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:dionisiydk@gmail.com">dionisiydk@gmail.com</a></a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <div dir="ltr">
            <div class="gmail_extra">Hi</div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">2016-04-18 8:40 GMT+02:00
                marcel.taeumel <span dir="ltr">&lt;<a
                    moz-do-not-send="true"
                    href="mailto:Marcel.Taeumel@hpi.de" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Marcel.Taeumel@hpi.de">Marcel.Taeumel@hpi.de</a></a>&gt;</span>:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div id=":6fj" class="a3s" style="overflow:hidden">Hi
                    there,<br>
                    <br>
                    there are three different scenarios for shutdown:<br>
                    <br>
                    1. Save and resume<br>
                    2. Save and quit<br>
                    3. Quit only<br>
                    <br>
                    For general clean-up routines, 1 and 2 should
                    clean-up, while 3 does not<br>
                    have to. So, one variable might be sufficient. :-)<br>
                    <br>
                    Any other ways of using shutdown?<br>
                  </div>
                </blockquote>
              </div>
              <br>
              But good practice is to close DB connections when app is
              closing for example</div>
          </div>
        </div>
      </blockquote>
      <br>
      <div>Agreed. Bug do you agree that #save is not a time to close,
        whereas #saveAndQuit and #quit are?</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    I think this is a place where the decision might best rest with the
    image user. We could present them (at save time) with a list of open
    OS resources and ask them what to do with each.<br>
    I did work on an application in VW that did not close db connections
    and it attempted (usually successfully) to transparently re-open
    them at startup. Also VA has code to recreate the OS widgets on
    startup.<br>
    But this can only happen if specific code/effort is put into it for
    each kind of resource. And presumably each image, even if it did
    handle some situations, would not handle all possible ones, so the
    user, assuming they know what their image capabilities are, would be
    in the best position to decide.<br>
    <br>
    Florin<br>
  </body>
</html>