Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Can't dispose Input Context while it's active
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't dispose Input Context while it's active



The "Can't dispose input context" message is actually a bug in JDK 1.3.1 and can affect any dialog or window when it's being closed, not just those using QTJava. I can't remember the details offhand, it's something like calling setEnableInputMethods(false), but if you search for it on Sun's java developer connection website there is a workaround by overriding the dispose() method of the frame.

-Rolf

Ryan,

You might want to take a look at the examples in the QuickTime SDK. Chances
are that you are doing something slightly different that what's in the
samples. You may want to take a look specifically at PlayMovie. If these
applications don't work either, then it may be an issue with your
installation instead of your code.

Also, based on the exception, it is not clear what could be the problem
without seeing more code. Please post a small example that we could take a
look at in order to determine the cause of the problem. Also please note the
platform that you are running on and the JDK version. Without this
information, it is rather hard to diagnose your problem.

-Michael

On 8/31/01 8:21 PM, "Ryan Boyd Leeder" <email@hidden> wrote:

i get the folling exception when i execute the code
myQTCanvas.removeClient();
QTSession.close();
dispose();

Exception occurred during event dispatching:
java.lang.IllegalStateException: Can't dispose InputContext while it's
active

at sun.awt.im.InputContext.dispose(InputContext.java)
at java.awt.Window$1$DisposeAction.run(Window.java)
at java.awt.Window.dispose(Window.java)
at PlayMovie.goAway(PlayMovie.java:80)
at PlayMovie$1.windowClosing(PlayMovie.java:23)
at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java)
at java.awt.Window.processWindowEvent(Window.java)
at java.awt.Window.processEvent(Window.java)
at java.awt.Component.dispatchEventImpl(Component.java)
at java.awt.Container.dispatchEventImpl(Container.java)
at java.awt.Window.dispatchEventImpl(Window.java)
at java.awt.Component.dispatchEvent(Component.java)
at java.awt.EventQueue.dispatchEvent(EventQueue.java)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java)
at java.awt.EventDispatchThread.run(EventDispatchThread.java)

Can someone please tell how i should properly dispose of this window
> when i want to close it
> Thanks in advance
> Ryan
> _______________________________________________
> quicktime-java mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/quicktime-java
_______________________________________________
quicktime-java mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/quicktime-java

--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.

CatDV 2.0 - Power tools for logging and cataloging digital video
New features, new power - http://www.catdv.com




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.