Please help: terminate called after throwing an instance of 'ost::Socket*'

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

Please help: terminate called after throwing an instance of 'ost::Socket*'

by CLJane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone,
I am a newbie to ccRTP and I would like to use it for sending generated wave data via RTP, but I have a problem now, that obviously nobody on the internet ever had before :/
I had some close looks at the documentation, demo programs and the internet to figure out how to use ccRTP inside my application.

Basically I did this:

#include ...

const int TRANSMITTER_BASE = 65000;
RTPSession *session;
...

int main(void)
{
  ...
  // This line causes the error...
  session = new RTPSession(local_ip,TRANSMITTER_BASE);
}

The application is compiled and built properly, but at execution I get:

terminate called after throwing an instance of 'ost::Socket*'

and that's all. Can somebody help me about this problem?
Im running Mepis, using g++ 4.1.

Thanks very much in advance for your help!

CLJane


Re: Please help: terminate called after throwing an instance of 'ost::Socket*'

by Federico Montesino Pouzols :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

It would be helpful to see a debugger trace (and what is throwing the
socket). Looks like you cannot bind a socket to
local_ip:TRANSMITTER_BASE. What's the content of local_ip? Is there
any other application on that socket?


_______________________________________________
Ccrtp-devel mailing list
Ccrtp-devel@...
http://lists.gnu.org/mailman/listinfo/ccrtp-devel

Re: Please help: terminate called after throwing an instance of 'ost::Socket*'

by CLJane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The declaration of local_ip is:
InetHostAddress local_ip = "192.168.34.22";

This is not my actual IP, is this the problem?

I have read about sockets and saw a kind of list, which sockets are usually free to use and 65000 should be free...

The debug terminal says:

Debug Terminal for the process:
-------------------------------
terminate called after throwing an instance of 'ost::Socket*'


The anjuta info window says:

Running program...
[Thread debugging using libthread_db enabled]
[New Thread -1212684064 (LWP 13784)]
[Switching to Thread -1212684064 (LWP 13784)]
main(argc = 1, argv=0xbfeea214) at PSP_eSpeak.cpp:198
Program received signal SIGABRT, Aborted.
0xb7c8a947 in raise () from /lib/tls/libc.so.6

(the program does not terminate in debug mode, I have to stop it manually. )