Fixed and new patch attached..<br><br>It seems someone else fixed the corruption problem while I was working on the equalizer, so the check is not needed now.<br><br><div class="gmail_quote">On Mon, Jun 20, 2011 at 9:32 PM, Michael Karcher <span dir="ltr"><<a href="mailto:Michael.Karcher@fu-berlin.de">Michael.Karcher@fu-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Am Montag, den 20.06.2011, 19:00 +0530 schrieb akash mehrotra:<br>
<div class="im">> <a href="http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110618/b2d51c5e/attachment.obj" target="_blank">http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110618/b2d51c5e/attachment.obj</a><br>

><br>
> would have fixed it, but since it was not accepted, I'm using this<br>
> hack till the time I can learn Qt enough to fix the problem without<br>
> the use of STL<br>
<br>
</div>Ah, that's easy. The problem is, as you were told, that the expression<br>
values.toAscii().constData() contains the creation of a QByteArray<br>
object that contains the ascii version. As this object (returned by<br>
toAscii(), consumed as "this" by constData() ) is not bound to any<br>
variable, it gets destroyed as soon as the compiler finishes evalution<br>
of "values.toAscii().constData()", which leaves you with a dangling<br>
pointer. Create a named QByteArray instead. It will live until it gets<br>
out of scope, like in<br>
<br>
  QByteArray arr = values.toAscii();<br>
  const char * psz_values = arr.constData();<br>
<br>
(not compile tested, but you get the idea)<br>
<br>
Regards,<br>
<font color="#888888">  Michael Karcher<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br>