robotology-legacy / qtyarp

QtYarp
1 stars 1 forks source link

No message when yarpserver is not detected #23

Closed pattacini closed 9 years ago

pattacini commented 10 years ago

When qtyarpview is launched and the yarp server is not running, the program terminates without any warning message.

aitek4iit commented 10 years ago

I've just tried to launch the old yarpview without any server running and no message appears. The Qt yarpview in the same situation writes on stdout "Error open ports". Shall I have to write this messages on Dialogs?

lornat75 commented 10 years ago

I think this is more than ok!

lornat75 commented 10 years ago

I checked on Windows, Visual Studio 10, Qt5.3, I get no error message when I run qtYARPview without nameserver.

I guess the message I should see is from this line:

qtyarpview.cpp:

ret= ptr_inputPort->open(_options.portName); if (!ret){ qDebug("Error: port failed to open, quitting."); return false; }

are this and similar error messages removed in release mode?

aitek4iit commented 10 years ago

In theory qDebug() acts like a Trace(). If you use the preprocessor define QT_NO_DEBUG_OUTPUT the qDebug will be ignored for that build (debug or release) but if this define is not used, it should write everything. I'll give a try

pattacini commented 9 years ago

closing this issue since it is reported in robotology/yarp