[pjsip] memory allocation and C++

Benny Prijono bennylp at pjsip.org
Tue Aug 5 16:42:10 EDT 2008

On Tue, Aug 5, 2008 at 8:41 PM, Brocha Strous <Brocha.Strous at kayote.com>wrote:

>  Hello,
> In the documentation it says "You MUST NOT use *malloc()* or any other
> memory allocation functions." – if I am planning on writing some of my
> application code in C++ can I safely use new/delete? If I am compiling in
> third-party libraries that may be using malloc/free or new/delete  will this
> cause a problem?
It's safe to use new/delete or malloc/free in your application, and yes
malloc/delete is used by some of the third party libraries anyway. It's just
that pjlib won't be able to help with regard to portability if we use it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080805/1ef21dee/attachment.html 

More information about the pjsip mailing list