<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">what is the crash backtrace? also, which version of VLCKit are you using? trunk, 1.0.3, other?<div><br></div><div>ms</div><div><br><div><div>On Dec 7, 2009, at 10:33 AM, Dilaroga dev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; white-space: pre-wrap; ">Hi,
I'm using the native umbrella under Mac OS X called VLCKit and i've discovered an issue that causes the crash of the application that is using it.
The problem occurs when i want to release some media players and video views objects that i've previously allocated in memory. Releasing the VLCMediaPlayer objects causes the crash of the application because of a message that is sent to an already released object (EXC_BAD_ACCESS).
My sequences to clean up VLCKit's objects are :
1) call to -(void) stop: to each media player
2) removing from super view and releasing the video views
3) releasing the media players.
The crash happens in the third step but the strange behaviour is that the code not always crashes (but very often). Another strange behaviour is that it's not the first player that i'm trying to release that causes the crash but it could be the second one or another player.
So have i missed something ? Is there a specific order to clean up the memory of the allocated VLCKit objects to not have an <span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; white-space: normal; ">over-releasing issue </span>?
In attachment, there's a diff file that shows the changes i've done on the VLCOpenGLVoutView.m from gui/minimal_macosx in order to not have this issue, but i'm newbie with VLC core and don't think that 2 commented lines does the trick... :)</span><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="white-space: pre-wrap;">Thanks by advance,</span></font></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; white-space: pre-wrap; ">Sébastien Zwickert.</span></div>
<span><vlc_minimal_macosx.diff></span>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a><br></blockquote></div><br></div></body></html>