<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi,
    <blockquote type="cite"
      cite="mid:40a2c286-0557-4eca-b5e4-7723d89c5250@app.fastmail.com">
      <div><br>
      </div>
      <div>In particular I would like to know more about object life
        cycles and memory management:  </div>
      <div>What kind of object management is the client program
        responsible for?  </div>
    </blockquote>
    <p>Normally none, but you may want to explicitly call .Close() on
      datasets to ensure the underlying file is closed at the
      appropriate moment<br>
    </p>
    <blockquote type="cite"
      cite="mid:40a2c286-0557-4eca-b5e4-7723d89c5250@app.fastmail.com">
      <div>Do I need to close objects manually or will the garbage
        collector take care of this for me?</div>
    </blockquote>
    for objects other than datasets, GC should work fine<br>
    <blockquote type="cite"
      cite="mid:40a2c286-0557-4eca-b5e4-7723d89c5250@app.fastmail.com">
      <div>If I open an OGR Dataset twice will I get two separate
        instances, or will the reference be shared?</div>
    </blockquote>
    unless you call Dataset.OpenEx() with the GDAL_OF_SHARED flag set,
    you'll get separate instances. And be careful if using shared
    instances: you cannot use them concurrently from different threads.
    If you work with separate instances, (for read-only operations) that
    should be fine.<br>
    <blockquote type="cite"
      cite="mid:40a2c286-0557-4eca-b5e4-7723d89c5250@app.fastmail.com">
      <div><br>
      </div>
      <div>Is this mailing list the place where I should be asking these
        questions, or it there a better place for it?</div>
    </blockquote>
    <p>No, that's fine</p>
    Even<span style="white-space: pre-wrap">
</span>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>