omniorb

ubuntu下omniORB例子

此生再无相见时 提交于 2020-08-07 00:38:11
一、开发环境安装 18.04 sudo apt install omniorb omniorb-idl omniidl libomniorb4-dev libomniorb4-2 omniorb-nameserver libomnithread4 libomnithread4-dev 16.04 $ sudo apt install omniorb omniorb-idl omniidl libomniorb4-dev libomniorb4-1 omniorb-nameserver libomnithread3c2 libomnithread3-dev 二、源文件: time.idl interface Time{ short get_gmt(); }; myserver.cc #include <iostream> #include "time.hh" using namespace std; class Time_impl:public virtual POA_Time{ public : virtual short get_gmt(); }; short Time_impl::get_gmt(){ return 1; } int main(int argc, char* argv[]){ try{ CORBA::ORB_var orb = CORBA::ORB_init

resolve_initial_references causes a SystemException

和自甴很熟 提交于 2020-01-15 06:22:42
问题 We use an ActiveX control in our client, developed with Visual C++ 6.0, in our application. We also use omniORB 2.7 to provide the connection to the server app. It's been working fine; but right now we need to run this application on a Windows 7, 64-bit PC. The ActiveX control is working; but in the C++ code, when it calls ORB's resolve_initial_references function as below: try { // Obtain a reference to the root context of the Name service: CORBA::Object_var initServ; initServ = orb->resolve

Segmentation fault (core dumped) on Server side in CORBA C++/Java application

十年热恋 提交于 2020-01-05 08:29:37
问题 I have such code: interface Employee { string getLastname(); }; #include "Employee.idl" interface Work { Employee getEmployee(in short id); }; Server files: #include "Employee.hh" class EmployeeImpl : public POA_Employee { private: char* lastname; int id; public: EmployeeImpl(const char* lastname, int id); char* getLastname(); }; #include "EmployeeImpl.h" EmployeeImpl::EmployeeImpl(const char* lastname, int id) { this->lastname = const_cast<char*>(lastname); this->id = id; } char*

How to install omniORB on Windows?

柔情痞子 提交于 2020-01-03 22:03:08
问题 I installed Python and MinGW, added everything which is needed to PATH (g++ and python), and downloaded omniORB from http://sourceforge.net/projects/omniorb/files/omniORB/omniORB-4.1.6/omniORB-4.1.6.tar.bz2/download, unzipped it. I cded to omniORB directory but there were no omniORB binaries in \bin\x86_win32 directory. So I have 2 questions: 1) where can I get omniORB binaries? (I would like to install omniORB on my computer with Windows XP/Vista (both x86)) 2) is it possible to install

_ptr or _var - which one use as a class field and why?

丶灬走出姿态 提交于 2019-12-12 15:30:57
问题 I have a class: class Impl1 : public POA_I1 { private : Impl2_var ob; public : Impl2_ptr get(); { return ob; } void set(::Impl2_ptr ob) { this->ob = ob; } }; I'm a litte bit confused about _ptr and _var . I read that MyObject_var The _var version of the object reference type acts as a handle toproxy in much the same way as a _ptr reference but also adds memory management. Like all _var types, a _var reference takes care of deallocating its underlying instance (in this case, the proxy instance