<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 10/19/2023 10:32 AM, Gabriel De Luca
      via QGIS-Developer wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAB-dfs3Uu9mHznBQ0NV5ba0O4u1eFREs2LsXLPnEzM8Frzw+WA@mail.gmail.com">
      <div>Hi German,</div>
      <div><br>
      </div>
      <div>  Thanks. Yes, it works that way. Do you know why?</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Regards,</div>
      <div>Gabriel</div>
    </blockquote>
    <br>
    Since nobody who really knows the code has responded yet, I'll
    conjecture it's a scoping issue. The underlying C++ code expects a
    pointer to the reference layer. If the python wrapper just passes
    the pointer of the object that was created in the call, the object
    will be out of scope after the function call returns and will be
    garbage collected. Someone who actually knows the code details can
    verify or contradict this.<br>
  </body>
</html>