0 Replies Latest reply: Jan 12, 2012 2:52 PM by 910765 RSS

    External Function memory leak

      The ExternalFunction.java sample code distributed with v.2.5.16 has a memory leak.

      You can see this by changing the loop to iterate a million times; eventually it runs out of memory and crashes.
      (I used jdk 1.7 u2 on Windows 7.)

      I tried adding explicit calls to delete() for every created Java object in the example, none of which helped.

      As far as I can tell, it is simply not possible to use external functions from Java without leaking memory.

      Any thoughts on this?