Memory Leak with 5.7MB

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Memory Leak with 5.7MB

  • Creator
    Topic
  • #54449
    Dianna Braden
    Participant

      Can tcl code of

      set msgtext [msgget $mh]

      and not releasing msgtext

    Viewing 0 reply threads
    • Author
      Replies
      • #81515
        Robert Kersemakers
        Participant

          Hi Dianna,

          I always look at it this way: in a tcl-proc (normally) a message is coming in. At the end of this proc you will always need to do something with this message and the messages that you may have created (msgcreat/msgcopy) inside the proc: you will need to KILL or CONTINUE every message.

          If you forget to KILL or CONTINUE a message, you will get a memory leak.

          So yes, if you don’t ‘release’ (KILL/CONTINUE) the original $mh, you will have a memory leak.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.