MathGroup Archive 2005

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

Search the Archive

Re: Bug in JavaBlock (or in JavaBlock documentation)


Hi,

There are two semicolons missing from your test - which should read:

Scan[ReleaseJavaObject, PeekObjects[]];
JavaBlock[JavaNew["javax.swing.JProgressBar"];];
PeekObjects[]

As written the JavaBlock was returning the Java object as its result - 
so it could not be garbage collected. Certainly, the problem goes away 
if you stop this happening.

David Bailey
dbaileyconsultancy.co.uk


  • Prev by Date: How to run multiple sessions on Mac OS X?
  • Next by Date: Re: plot on condition
  • Previous by thread: Re: Bug in UI?
  • Next by thread: Re: Bug in JavaBlock (or in JavaBlock documentation)