[Qt-interest] WG: QT Assistant and ports
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Mar 23 07:38:01 CET 2011
OK, one entry in netstat -ba is
TCP 0.0.0.0:2346 DIBW154:0 ABHÖREN
[ReDeformApp.exe]
2346 is my port and ReDeformApp.exe my programm where i listen for incoming messages
When i open assistant.exe and start netstat -ba again i get the same entry:
Es konnten keine Besitzerinformationen abgerufen werden.
TCP 0.0.0.0:2346 DIBW154:0 ABHÖREN
[ReDeformApp.exe]
And i cannot see any assistant.exe, what does this mean? Here is the way i start assistant.exe:
if (!m_poHelp)
m_poHelp = new QProcess();
if (m_poHelp->state() != QProcess::Running)
{
//QString strApp = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator();
QString strApp;
QStringList oArgs;
strApp += QLatin1String("assistant.exe");
oArgs << QLatin1String("-collectionFile") << QLatin1String("doc/ReDeformHelp.qhc") << QLatin1String("-enableRemoteControl");
try
{
m_poHelp->start(strApp, oArgs);
if (!m_poHelp->waitForStarted())
{
QMessageBox::critical(0, QObject::tr("ReDeform help"), QObject::tr("Unable to launch Qt Assistant (%1)").arg(strApp));
return;
}
}
catch(...)
{
QMessageBox::critical(0, QObject::tr("ReDeform help"), QObject::tr("Caught exception from (%1)").arg(strApp));
return;
}
If i open the assistant.exe from external over explorer my program keeps working, so i only get no port if i open the assistant over code. I also tried without enableRemoteControl but it doesn't have an effect, i also tried:
std::stringstream oCall;
oCall << "start assistant.exe -collectionFile doc";
oCall << QDir::separator().toAscii();
oCall << "ReDeformHelp.qhc";
system(oCall.str().c_str());
But its the same, i really have no clue because my receiving thread/code has nothing to do with the assistant... (I use the QtConcurrentRun to make a new thread, thats the only QT thing i do in the receiving...)
Best regards
-----Ursprüngliche Nachricht-----
Von: Brad Hards [mailto:bradh at frogmouth.net]
Gesendet: Dienstag, 22. März 2011 21:22
An: Lodron, Gerald
Betreff: Re: AW: [Qt-interest] WG: QT Assistant and ports
I asked:
> For example, what does netstat -ba show is bound to the port?
>
> Ideally, you could post a minimal, compileable, self-contained example
> that demonstrates the problem.
You didn't provide either of those - your example is not compilable or self- contained.
Just post on the list, it will be fine.
Brad
More information about the Qt-interest-old
mailing list