.NET Interface >

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.
  • 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.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF