Display.release

Releases any internal resources back to the operating system and clears all fields except the device handle. <p> Disposes all shells which are currently open on the display. After this method has been invoked, all related related shells will answer <code>true</code> when sent the message <code>isDisposed()</code>. </p><p> When a device is destroyed, resources that were acquired on behalf of the programmer need to be returned to the operating system. For example, if the device allocated a font to be used as the system font, this font would be freed in <code>release</code>. Also,to assist the garbage collector and minimize the amount of memory that is not reclaimed when the programmer keeps a reference to a disposed device, all fields except the handle are zero'd. The handle is needed by <code>destroy</code>. </p> This method is called before <code>destroy</code>.

@see Device#dispose @see #destroy

class Display
protected override
void
release
(
)

Meta