How can I reset QTMovieView contents?
How can I reset QTMovieView contents?
- Subject: How can I reset QTMovieView contents?
- From: Sergey Shapovalov <email@hidden>
- Date: Wed, 30 May 2007 19:18:09 +0400
Hello.
In my Cocoa application, I have a window with a QTMovieView control.
When I want to reset the state of the control to "nothing" (just
empty black rectangle), I say "setMovie: nil" to it. My question: is
this legal? And if it isn't, what's the correct way to reset its state?
The fact that makes me think that probably it isn't is that my
application sometimes crashes after I do so. It happens after a while
somewhere deep inside QuickTime - looks like corrupted memory
problem. Well, I'm not 100% sure that the problem is in this
"setMovie: nil", but if I comment it out, the crash seems to vanish.
I can send the entire test project (about only 20 lines of source
code actually) to anyone who feels interested. In general, this is a
mixture of QTKit and QuickTime SDK employing some deprecated APIs
(like FSSpec). Well, it is pretty easy to get rid of them in this
small test application, but it was created just to demonstrate (and
to isolate) the problem I encounter in my real big application, and
before modifying megabytes of source code, I want to be sure
concerning what's the reason.
Thanks in advance for any hint!
Best regards,
Sergey Shapovalov.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden