PJSIP Error on VS2008

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone

I've recently started using PJSIP on windows. I managed to setup  
everything on Visual Studio 2008, and managed to compile the library.  
I tried to compile and run one of the examples from the Dev Guide (pg.  
26-27), the sample URI manipulation program.

It compiles fine but when I run it it crashes. If I remove this line  
it executes fine:

sip_uri->user = pj_str(?alice?);

When I run it, the error I get from VS "Unhandled exception at  
0x00acd78f in sip_test.exe: 0xC0000005: Access violation reading  
location 0x00000184." and scanner.h "pops up" and VS crashes at this  
line:

PJ_INLINE(int) pj_cis_match( const pj_cis_t *cis, pj_uint8_t c )
{
     return PJ_CIS_ISSET(cis, c); //<----(crash occurs here)
}

At the time of the crash, values for c and cis are as shown by Visual Studio:


cis	0x00af0378 {cis_buf=0x00000000 cis_id=0 }	const pj_cis_t *

cis_buf	0x00000000	unsigned int *

c	97 'a'	unsigned char

I haven't changed anything in the code from the Dev Guide. Could it  
possibly be a mistake I made with my VS configuration? I noticed that  
it occurs with other parameters as well,if I try to add them:

pj_strdup2(pool, &url->transport_param, "tcp");
pj_strdup2(pool, &url->maddr_param, "127.0.0.1");
pj_strdup2(pool, &url->method_param, "ACK");

So somehow setting these parameters on pj_sip_uri causes the crash. I  
think it is the same problem as seen  
here(http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-November/012164.html). Any tips?  
Thanks!

Regards
Bruno






This message and attachments are subject to a disclaimer. Please refer
to www.it.up.ac.za/documentation/governance/disclaimer/ for full
details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by
www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux