Re: [Sofia-sip-devel] nua_respond and deallocated memory

2010-03-12 Thread Martin Drasar
On 3.3.2010 16:36, Jarod Neuner wrote: Calls to nua_respond, or any other method that sends or receives a response, should always be considered an async operation. A reasonable approach would be to use the memory home associated with that handle (nua_handle_home) to allocate the data - the

Re: [Sofia-sip-devel] nua_respond and deallocated memory

2010-03-12 Thread Martin Drasar
Dne 12.3.2010 17:50, Pekka Pessi napsal(a): 2010/3/12 Martin Drasar dra...@optimsys.cz: On 3.3.2010 16:36, Jarod Neuner wrote: Calls to nua_respond, or any other method that sends or receives a response, should always be considered an async operation. A reasonable approach would be to use

[Sofia-sip-devel] nua_respond and deallocated memory

2010-03-03 Thread Martin Drasar
Hello everyone, I have a question regarding the nua_respond() function. I have encountered a problem with this construct: void doSomething() { std::string message; switch() { case a: message = something; break; case b: message = soemthing else; break; } nua_respond(nh,

Re: [Sofia-sip-devel] nua_respond and deallocated memory

2010-03-03 Thread Jarod Neuner
To: sofia-sip-devel@lists.sourceforge.net Subject: [Sofia-sip-devel] nua_respond and deallocated memory Hello everyone, I have a question regarding the nua_respond() function. I have encountered a problem with this construct: void doSomething() { std::string message; switch() { case