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



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.


--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
_______________________________________________
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: 
 >Re: Crash when adding/removing movie (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.