Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App stuck at quicktime.QTSession.close(QTSession.java:611)



You're on Windows, right? There's a warning on page 12 that QTSession.close() causes trouble for some people on Windows and that QTSession.exitMovies() might be a safer way to close things down.

--Chris


On Feb 4, 2005, at 10:43 PM, email@hidden wrote:

Just started coding Quicktime to Java.

This problem has probably been covered before. I'm following the "Quicktime
for Java Developer's Notebook". I have a shutdown hook in the class
QTSessionCheck:


public class QTSessionCheck {

	private Thread shutdownHook;
	private static QTSessionCheck instance;
		private QTSessionCheck() throws QTException {
		super();
		//init
		QTSession.open();
		//create shutdown handler
		shutdownHook = new Thread() {
			public void run() {
				try {
					QTSession.close();
				} catch(Exception e) {
				}
			}
		};
		Runtime.getRuntime().addShutdownHook(shutdownHook);
	}
<snip>

But when I shutdown the app it gets stuck with:

Full thread dump Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode,
sharing):

"Thread-2" prio=5 tid=0x02fca578 nid=0xad0 in Object.wait()
[0x0720f000..0x0720f
d64]
at java.lang.Object.wait(Native Method)
- waiting on <0x24014730> (a java.awt.EventQueue$1AWTInvocationLock)
at java.lang.Object.wait(Unknown Source)
at java.awt.EventQueue.invokeAndWait(Unknown Source)
- locked <0x24014730> (a java.awt.EventQueue$1AWTInvocationLock)
at java.awt.Window.doDispose(Unknown Source)
at java.awt.Window.dispose(Unknown Source)
at quicktime.QTSession.terminate(QTSession.java:660)
- locked <0x2452a7f0> (a java.lang.Object)
at quicktime.QTSession.close(QTSession.java:611)
at com.cirne.revo.QTSessionCheck$1.run(QTSessionCheck.java:30)


Any help or advise would be appreciated.

	-- Enric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden
References: 
 >App stuck at quicktime.QTSession.close(QTSession.java:611) (From: <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.