Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Bug in JavaBlock (or in JavaBlock documentation)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56279] Re: Bug in JavaBlock (or in JavaBlock documentation)
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Wed, 20 Apr 2005 05:33:08 -0400 (EDT)
  • References: <200504180708.DAA20033@smc.vnet.net> <d42l2l$3gs$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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


  • References:
    • Bug in UI?
      • From: "Matt" <anonmous69@netscape.net>
  • 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)