<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    What follows is a conjecture, becaus I can not reproduce the
    problem.<br>
    <br>
    It is likely that that the events are forming a circular chain of
    references. Our event system is implemented using Weak collections.
    Weak collections can't automatically clean circular chains. That's
    why a more sophisticated techinque "Ephemerons" was developed.<br>
    <br>
    The OpenSmalltalk VM supports Ephemerons, but Cuis is not taking
    advantage of this, and doesn't offer Ephemerons. This is something
    I'd like to add to Cuis in the mid term (this year or next year),
    unless someone beats me to do it.<br>
    <br>
    In any case, I think that if in your windows, in the #close method
    (add it if not there), after calling `super close`, doing `model
    flushEventSystem` could solve the problem.<br>
    <br>
    HTH,<br>
    <br>
    On 6/9/2024 8:16 PM, Juan Vuletich via Cuis-dev wrote:
    <blockquote cite="mid:666637CE.5000803@cuis.st" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      Hi Hilaire,<br>
      <br>
      #flushEventSystem does #removeActionsForEvent:, so it is not the
      same as doing #garbageCollect. I believe doing #garbageCollect
      will not help.<br>
      <br>
      Either you or someone else (perhaps me) needs to understand what's
      going on. I can only do it if I can debug an image with the
      symptoms on my PC.<br>
      <br>
      The alternative, as Andrés suggested, is for you to use the
      provided tools to understand the reference chains.<br>
      <br>
      Hope this helps,<br>
      <br>
      On 6/8/2024 11:26 AM, Hilaire Fernandes via Cuis-dev wrote:
      <blockquote
        cite="mid:aa7794de-b0b3-4cea-87bf-05185cc0b654@free.fr"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p><font size="4">Flushing the event system seems to help:
            ActiveModel flushEventSystem.</font></p>
        <p><font size="4">Looks like I have to do it manually<br>
          </font></p>
        <p><font size="4">Or will #garbageCollect be more appropriate?
            But it is not node frequently enough? Or do I miss
            somethings?<br>
          </font></p>
        <p><font size="4"><br>
          </font></p>
        <div class="moz-cite-prefix">Le 06/06/2024 à 23:42, Hilaire
          Fernandes a écrit :<br>
        </div>
        <blockquote type="cite"
          cite="mid:c0179e42-8e51-4c9d-acff-9bd8af58a3ad@free.fr">
          <p><font size="4">Since then, I observed that when I save the
              image, the things get smoother and obsolete entries in
              action map seem to be collected.</font></p>
          <p><font size="4">Could it be related?</font></p>
        </blockquote>
        <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>