[英]Run from eclipse IDE works fine but terminates when run from terminal
I'm using eclipse CDT in linux. 我在Linux中使用Eclipse CDT。 I have a code that uses threads, TCP, files etc. This program runs fine in the Eclipse IDE but when I try to run this from the linux terminal, the program gets terminated in between.
我有一个使用线程,TCP,文件等的代码。该程序在Eclipse IDE中运行良好,但是当我尝试从linux终端运行该程序时,该程序将在两者之间终止。 There is no error message shown.
没有显示错误消息。 Can someone help me?
有人能帮我吗?
I found the problem I was facing. 我发现了我面临的问题。 One of my thread was trying to send through TCP before connection.
我的线程之一是尝试在连接之前通过TCP发送。 I still don't know why it had no issues while running in IDE.
我仍然不知道为什么在IDE中运行时它没有问题。 Now it works fine after i modified my code to use TCP only after connection has been established.
现在,在我修改代码以仅在建立连接后才使用TCP之后,它可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.