これは,Wolfram言語の以前のバージョンに基
づくMathematica 6のためのドキュメントです.
最新のドキュメント(バージョン11.2)もご覧ください.

NETBlock

NETBlock[expr]
causes all new .NET objects returned to Mathematica during the evaluation of expr to be released when expr finishes.
  • It is an error to refer to a released object.
  • NETBlock only affects new objects, not additional references to ones that have previously been seen.
  • NETBlock is a way to mark a set of objects as temporary so they can be automatically cleaned up on both the Mathematica and .NET sides.