controlCallback = drawItemCallback = itemDataCallback = itemNotificationCallback = null;
accessibilityCallback = controlCallback = drawItemCallback = itemDataCallback = itemNotificationCallback = null;
void releaseDisplay () {	disposeWindows ();	/* Release Timers */	if (caretID != 0) OS.RemoveEventLoopTimer (caretID);	if (mouseHoverID != 0) OS.RemoveEventLoopTimer (mouseHoverID);	caretID = mouseHoverID = 0;	if (timerIds != null) {		for (int i=0; i<timerIds.length; i++) {			if (timerIds [i] != 0 && timerIds [i] != -1) {				 OS.RemoveEventLoopTimer (timerIds [i]);			}		}	}	timerIds = null;		actionCallback.dispose ();	appleEventCallback.dispose ();	caretCallback.dispose ();	commandCallback.dispose ();	controlCallback.dispose ();	drawItemCallback.dispose ();	itemCompareCallback.dispose ();	itemDataCallback.dispose ();	itemNotificationCallback.dispose ();	helpCallback.dispose ();	hitTestCallback.dispose ();	keyboardCallback.dispose ();	menuCallback.dispose ();	mouseHoverCallback.dispose ();	mouseCallback.dispose ();	trackingCallback.dispose ();	windowCallback.dispose ();	colorCallback.dispose ();	textInputCallback.dispose ();	appearanceCallback.dispose ();	actionCallback = appleEventCallback = caretCallback = commandCallback = appearanceCallback = null;	controlCallback = drawItemCallback = itemDataCallback = itemNotificationCallback = null;	helpCallback = hitTestCallback = keyboardCallback = menuCallback = itemCompareCallback = null;	mouseHoverCallback = mouseCallback = trackingCallback = windowCallback = colorCallback = null;	textInputCallback = null;	actionProc = appleEventProc = caretProc = commandProc = appearanceProc = 0;	controlProc = drawItemProc = itemDataProc = itemNotificationProc = itemCompareProc = 0;	helpProc = hitTestProc = keyboardProc = menuProc = 0;	mouseHoverProc = mouseProc = trackingProc = windowProc = colorProc = 0;	textInputProc = 0;	timerCallback.dispose ();	timerCallback = null;	timerProc = 0;	grabControl = currentControl = mouseUpControl = focusControl = focusCombo = null;	helpWidget = null;	if (helpString != 0) OS.CFRelease (helpString);	helpString = 0;	menus = popups = null;	menuBar = null;	/* Release the System Images */	if (errorImage != null) errorImage.dispose ();	if (infoImage != null) infoImage.dispose ();	if (warningImage != null) warningImage.dispose ();	errorImage = infoImage = warningImage = null;	/* Release the System Cursors */	for (int i = 0; i < cursors.length; i++) {		if (cursors [i] != null) cursors [i].dispose ();	}	cursors = null;		/* Release Dock image */	if (dockImage != 0) OS.CGImageRelease (dockImage);	if (dockImageData != 0) OS.DisposePtr (dockImageData);	dockImage = dockImageData = 0;	//NOT DONE - call terminate TXN if this is the last display 	//NOTE: - display create and dispose needs to be synchronized on all platforms//	 TXNTerminateTextension ();}