Re: Crash when adding/removing movie
Subject : Re: Crash when adding/removing movie
From: Rolf Howarth <email@hidden >
Date: Fri, 18 Feb 2005 22:38:39 +0000
Delivered-to: email@hidden
Delivered-to: email@hidden
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
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.