Thanks Marc. I have read about alloca(), malloc(), free() etc. And
yes,in fact im freeing the memory used by malloc with free(). So I dont
know why it dies (and even if i did not free the memory, should not die
for a single call does it?).<br>
<br>
the whole file is in:<br>
<a href="http://galileo.ivsol.net/scripts/app_dumpchan.c">http://galileo.ivsol.net/scripts/app_dumpchan.c</a><br>
<br>
Thanks In Advance.<br><br><div><span class="gmail_quote">On 12/13/05, <b class="gmail_sendername">Marc Haisenko</b> <<a href="mailto:haisenko@comdasys.com">haisenko@comdasys.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tuesday 13 December 2005 17:50, Moises Silva wrote:<br>> the application just dies when the malloc() function is called. Any help<br>> and suggestions will be appreciated.<br><br>If you don't need the variable to survive your function call then you can try
<br>using alloca, which will allocate on your stack frame. Has the nice side<br>effect that you don't need to free the memory, that happens as soons as you<br>leave your function.<br><br>C'ya,<br> Marc<br><br>--<br>
Marc Haisenko<br>Comdasys AG<br><br>Rüdesheimer Straße 7<br>D-80686 München<br>Tel: +49 (0)89 - 548 43 33 0<br>Fax: +49 (0)89 - 548 43 33 29<br>e-mail: <a href="mailto:haisenko@comdasys.com">haisenko@comdasys.com</a><br><a href="http://www.comdasys.com">
http://www.comdasys.com</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Dev mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>"Su nombre es GNU/Linux, no solamente Linux, mas info en
<a href="http://www.gnu.org">http://www.gnu.org</a>"