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.