Skip to content

Commit

Permalink
- Don't let the CORBA implementation free() tempDirectoryPath
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8031 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 26, 2011
1 parent 595500c commit 7308016
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OMShell/oms.cpp
Expand Up @@ -1127,14 +1127,21 @@ bool OMS::startServer()
omcNowStarted = true;

// get version no
QString getTempStr = "getTempDirectoryPath()";
delegate_->evalExpression( getTempStr );
cout << "Temp.Dir " << delegate_->getResult().toStdString() << std::endl;

QString getVersionStr = "getVersion()";
delegate_->evalExpression( getVersionStr );
omc_version_ = delegate_->getResult();
omc_version_.remove( "\"" );
cout << "OMC version " << omc_version_.toStdString() << std::endl;

// get omhome
delegate_->evalExpression( getOMHomeStr );
omhome = delegate_->getResult();
omhome.remove( "\"" );
cout << "OPENMODELICAHOME: " << omhome.toStdString() << std::endl;
}
}
}
Expand Down

0 comments on commit 7308016

Please sign in to comment.