[reSIProcate] (no subject)

John Draper lists at webcrunchers.com
Mon Nov 7 16:53:38 CST 2005


maodonghu wrote:

>Hi,
> 	
>I am a fresh man on reSIProcate, now I encounter a problem in my program.
>if the program written like this, it is good for work:
>
>//---------------------------------------------------
>int _tmain(int argc, _TCHAR* argv[])
>{
>	//Log::initialize(Log::Cout, Log::Stack, argv[0]);
>
>	SipStack sip_stack;
>	DialogUsageManager* dum = new DialogUsageManager( sip_stack );  <----
>	dum->addTransport( UDP, 12345 );
>	
>
>but if written like this, it will throw a exception:
>
>//----------------------------------------------------
>SipStack sip_stack;
>int _tmain(int argc, _TCHAR* argv[])
>{
>	//Log::initialize(Log::Cout, Log::Stack, argv[0]);
>
>	
>	DialogUsageManager* dum = new DialogUsageManager( sip_stack );    <----
>	dum->addTransport( UDP, 12345 );
>	...
>
>I dont know why the sip_stack must be local ? 
>
>        maodonghu
>        hhmmdd at tom.com
>          2005-11-03
>  
>
>------------------------------------------------------------------------
>
Change line indicated by <---- to this...


   DialogUsageManager* dum = new DialogUsageManager( *sip_stack ); 

You are passing a pointer to it,  unstead of the value.

John





More information about the resiprocate-devel mailing list