Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > stopping movies in nsmovieviews causes crash

stopping movies in nsmovieviews causes crash
Thread Tools
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Jan 24, 2002, 06:44 PM
 
hi everybody,

i have a problem i've been struggling with forever now. first i thought that it was my own stupidity, but... i'm lost.

i have an nsmovieview in a small app. that movieview might occasionally get replaced by another view, i do this via nsview's replacesubview:with: which has always worked nicely for me.
it also works for movies which are not playing. but if i try to stop the movie before replacing the movieview, it just crashes (singal 10 (sigbus)). i tried stopping it via nsmovieview's stop: method and i also tried subclassing nsmovieview and to override its dealloc in which i then call StopMovie([[super movie] QTMovie]);

the movieview as well as the movie always has a retaincount of one, so i don't try calling this on some nil object.

i even always check whether the movie is currently playing.

did anybody ever experience anything similar or could point me in the right direction?

any help would be very much appreciated.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2