<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 01/07/2020 à 18:52, Samuel Gougeon a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:d644a679-78d0-82e9-af83-0364dd4c3438@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Le 01/07/2020 à 13:47, Stéphane
        Mottelet a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:668f4a8c-ae24-8ed6-b5dd-00c194c9df88@utc.fr">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p>Right, sorry for my previous message. <br>
        </p>
        <p>But, at the user level there are very few use cases: the
          clear overload is only useful if some mlist fields contain
          some pointers to allocated data. For example sparse LU 
          factors or Java objects.</p>
      </blockquote>
      <p><br>
      </p>
      <p>The auto-clearing of the Java side of Java objects is already
        implemented (and it's documented).<br>
      </p>
    </blockquote>
    <p>I am not sure it worked perfectly before. Clement's patch is
      essentially dealing with this case, see e.g.:</p>
    <p><a class="moz-txt-link-freetext" href="https://codereview.scilab.org/#/c/20679/14/scilab/modules/external_objects/sci_gateway/cpp/sci_percent_EObj_clear.cpp">https://codereview.scilab.org/#/c/20679/14/scilab/modules/external_objects/sci_gateway/cpp/sci_percent_EObj_clear.cpp</a></p>
    <p><a class="moz-txt-link-freetext" href="https://codereview.scilab.org/#/c/20679/14/scilab/modules/external_objects/src/cpp/clear.cpp">https://codereview.scilab.org/#/c/20679/14/scilab/modules/external_objects/src/cpp/clear.cpp</a><br>
    </p>
    <p>S.<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:d644a679-78d0-82e9-af83-0364dd4c3438@free.fr">
      <p> <br>
        I am wondering if a similar native auto-clearing could be
        implemented for xml and hdf5 objects.<br>
        I guess that using<a class="refentry" moz-do-not-send="true">
          clear before h5close() or xmlDelete() could make memory
          leaking.</a></p>
      <p><a class="refentry" moz-do-not-send="true">Samuel</a></p>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
  </body>
</html>