Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RES: Crash when adding/removing movie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RES: Crash when adding/removing movie



Hi,

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

-----Mensagem original-----
De: quicktime-java-bounces+pmacagnani=email@hidden
[mailto:quicktime-java-bounces+pmacagnani=email@hidden]
Em nome de Claudio Potenza
Enviada em: quinta-feira, 17 de fevereiro de 2005 09:49
Para: email@hidden
Assunto: Re: Crash when adding/removing movie


> I have a JSplitPane to which I have added a JPanel as the left
> component. When I open a movie file, that JPanel adds the
> QTComponent to itself. Later on, I remove the movie and open a
> different one - if I repeat this sequence a few times, my app
> crashes with a SIGBUS 10.
  . . .
> 1.4.2 on 10.3.8, building with XCode.

I have exactly the very same problem (JSplit panel with left JPanel that
contains the QTComponents etc., that crashes with SUGBUS 10 when
removing&addaing a new movie a few times)

The dump of the crahsed thread is the same.

I have tried calling/not calling disposeQTObject on the Movie and/or Movie
controller in different sequence but it still doesn't work.

I have tried to use a MultiMovieController again without success.

I am a bit disappointed by the ease with which QT Java can crash. After
using Java for a while, I had got used to not seeing exceptions any more and
I have to admit it was quite a pleasurable experience.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
d.br

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:

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 © 2011 Apple Inc. All rights reserved.