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: Crash when adding/removing movie



As for me, I am not crashing on 1.3.1 and am not using any of these locking mechanisms. But I am crashing on 1.4.2 - I tried the QTNative.globalsLock approach, and I still crash in the same spot. The MRJ version is not available. Any other suggestions?


I want to second that suggestion. I had to similar stuff in my code a while ago and it resolved a few crashes.

For example, I just found the following comment in my code:

	synchronized(quicktime.jdirect.QTNative.globalsLock)
	{
		// this used to crash the JVM if not protected
		add(c);
	}

I think synchronizing on the globalsLock or using CarbonLock.aquire()
actually do pretty much the same thing on Mac OS X, Java 1.3.1.

-Rolf

At 6:46 pm +0100 17/2/05, email@hidden wrote:
Try to surround your adding/removie calls with carbonlock.

 import com.apple.mrj.macos.carbon.CarbonLock;
 try {
	CarbonLock.acquire();

	// your carbon call here

 } finally {
	CarbonLock.release();
 }

Paulo, thank you, I'll try this.


_______________________________________________ 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


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.