ReleaseGUIObject
ReleaseGUIObject[obj]
closes and terminates all resources of a live GUIObject instance.
Details and Options
- To use ReleaseGUIObject, you first need to load GUIKit using Needs["GUIKit`"].
- ReleaseGUIObject programmatically ends an interface's session (which is normally ended interactively by user actions such as closing the window), both closing and disposing of all related resources.
- ReleaseGUIObject forces the termination of interface resources even if an initial GUIRun might have requested that the interface live on past its closing by using the option ReleaseMethod->Manual.
- Use CloseGUIObject instead of ReleaseGUIObject to ensure the original life cycle intent of a GUIRun call.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases

https://wolfram.com/xid/06u81s9085y3ft9x9u-e9bwl9
Create a live interface object:

https://wolfram.com/xid/06u81s9085y3ft9x9u-gpi

Verify that the interface is active:

https://wolfram.com/xid/06u81s9085y3ft9x9u-rhr


https://wolfram.com/xid/06u81s9085y3ft9x9u-jw6
Confirm that the interface is no longer valid:

https://wolfram.com/xid/06u81s9085y3ft9x9u-k15

Scope (2)Survey of the scope of standard use cases

https://wolfram.com/xid/06u81s9085y3ft9x9u-cx26ff
Create a modeless live interface object:

https://wolfram.com/xid/06u81s9085y3ft9x9u-sla


https://wolfram.com/xid/06u81s9085y3ft9x9u-xmz
Verify that the interface is no longer valid:

https://wolfram.com/xid/06u81s9085y3ft9x9u-cv5


https://wolfram.com/xid/06u81s9085y3ft9x9u-ilb5m4
Create a modeless live interface object, specifying a manual ReleaseMethod:

https://wolfram.com/xid/06u81s9085y3ft9x9u-ocl

Attempt to close the interface:

https://wolfram.com/xid/06u81s9085y3ft9x9u-zho
Test whether the interface is still valid:

https://wolfram.com/xid/06u81s9085y3ft9x9u-y0i


https://wolfram.com/xid/06u81s9085y3ft9x9u-s36
Verify that it is no longer valid:

https://wolfram.com/xid/06u81s9085y3ft9x9u-t0f

Wolfram Research (2007), ReleaseGUIObject, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.
Text
Wolfram Research (2007), ReleaseGUIObject, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.
Wolfram Research (2007), ReleaseGUIObject, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.
CMS
Wolfram Language. 2007. "ReleaseGUIObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.
Wolfram Language. 2007. "ReleaseGUIObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.
APA
Wolfram Language. (2007). ReleaseGUIObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html
Wolfram Language. (2007). ReleaseGUIObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html
BibTeX
@misc{reference.wolfram_2025_releaseguiobject, author="Wolfram Research", title="{ReleaseGUIObject}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html}", note=[Accessed: 21-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_releaseguiobject, organization={Wolfram Research}, title={ReleaseGUIObject}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html}, note=[Accessed: 21-March-2025
]}