RTPSession failed null

View: New views
1 Messages — Rating Filter:   Alert me  

RTPSession failed null

by blackswan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i'm using your ccRTP and get some code from example audiotx.cpp.
I have some problem and no idea how to resolve it. In the code below :

class ccRTP_AudioTransmitter: public Thread, public TimerPort
{
...........................
   RTPSession *socket;
public:
  .............................
   // This method does almost everything.
   void run(void)
{
...........................................             // Construct the RTP socket.
       socket = new RTPSession(local_ip,TRANSMITTER_BASE);

var socket returns NULL in debug mode and after first use we have SIGSEGV error. But in release mode this code works correctly

Please, help me understand this error.