Re: Help with this code

2008-03-22 Thread Jens Alfke
On 22 Mar '08, at 3:23 PM, Guillem Palou wrote: The debugger crashes in a MoviesTask call. The movie is loaded long before the call, but the QTMovie object is created only a few instants before. All the other objects look valid. Maybe a Movie, or other important object, got deallocated. Tr

Re: Help with this code

2008-03-22 Thread Bill Monk
There's not enough context to tell what's really going on. )Also, quicktime-dev may be a more useful list.) But a few things stick out. As written, the if-test is meaningless because no NSError is passed to the QTMethod. movieWithQuickTimeMovie: may be failing, so you may be passing garba

Re: Help with this code

2008-03-22 Thread Guillem Palou
The debugger crashes in a MoviesTask call. The movie is loaded long before the call, but the QTMovie object is created only a few instants before. All the other objects look valid. The only thing is that when setting the movie object, I'm trying to set an invalid QTMovie object but I don't see the

Re: Help with this code

2008-03-22 Thread Jens Alfke
On 22 Mar '08, at 12:19 PM, Guillem Palou wrote: It crashes when I call the setMovie method of the QTMovieView Object. The code seems to work with movieWithFile instead of movieWithQuicktimeMovie. Use the debugger, then. How does it crash? In the debugger, what's the backtrace? What's th

Help with this code

2008-03-22 Thread Guillem Palou
Hi all, anyone knows what's wrong with this code? -(void)loadStateChanged:(NSNotification *) notification { QTMovie *movie = [notification object]; long loadState = [[movie attributeForKey:QTMovieLoadStateAttribute] longValue]; if (loadState >= 2) [clipMovieView setMovi