JavaBlock

JavaBlock[expr]
causes all new Java objects returned to Mathematica during the evaluation of expr to be released when expr finishes. It is an error to refer to such an object after JavaBlock ends.
  • JavaBlock is a way to mark a set of objects as temporary so they can be automatically cleaned up when the block of code ends.
  • JavaBlock affects only new objects, not additional references to ones that have previously been seen.
© 2008 Wolfram Research, Inc. japanese.gif