doVerb(OLE.OLEIVERB_DISCARDUNDOSTATE);
if (state != STATE_NONE) doVerb(OLE.OLEIVERB_DISCARDUNDOSTATE);
private void onDispose(Event e) {	inDispose = true;	doVerb(OLE.OLEIVERB_DISCARDUNDOSTATE);	deactivateInPlaceClient();	releaseObjectInterfaces(); // Note, must release object interfaces before releasing frame	deleteTempStorage();		// remove listeners	removeListener(SWT.Dispose, listener);	removeListener(SWT.FocusIn, listener);	removeListener(SWT.Paint, listener);	removeListener(SWT.Traverse, listener);	removeListener(SWT.KeyDown, listener);	frame.removeListener(SWT.Resize, listener);	frame.removeListener(SWT.Move, listener);		frame.Release();	frame = null;}