MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Memory leak caused by JavaNew[...] (JLink package)


I have a function like this:

outputDataPacketObject = JavaNew["mypackage.MyOutputClass", ...];

(* run some calculation and result result within
'outputDataPacketObject' java object *)
result = MyCalcObject at runSimpleCalculation[...
outputDataPacketObject ... ];


The function should be called many times (>3000).

It turnes out that something in the program eats the memory and after
sometime the kernel says "no enough memory".

So, why it might happen? What might be wrong? Is there a way to clear
the memory?



  • Prev by Date: Re: testing if a point is inside a polygon
  • Next by Date: Usage of #1
  • Previous by thread: Consultant Needed
  • Next by thread: Re: Memory leak caused by JavaNew[...] (JLink package)