[omniORB] Need help.....
Sharon_Lin@amat.com
Sharon_Lin@amat.com
Thu Sep 26 13:45:02 2002
This is a multipart message in MIME format.
--=_alternative 0046005FC2256C40_=
Content-Type: text/plain; charset="us-ascii"
Here some code i wrote that transfer a struct to java client.
alarmsClient is a member of IPService_i class;
When the java client invoke this function it suceedded only in the first
time and
then it raised unknow exception(Not a corba exception according the corba
messages in traceLevel 25)?
Any suggestion?
class IPService_i: public POA_IPService,
public PortableServer::RefCountServantBase {
private:
// Make sure all instances are built on the heap by making the
// destructor non-public
//virtual ~IPService_i();
public:
ALARMARRAY* alarmsArray;
// standard constructor
IPService_i();
virtual ~IPService_i();
// methods corresponding to defined IDL attributes and operations
ALARMARRAY* getAlarm();
};
IPService_i::IPService_i(){
alarmsArray = createAlarms();
// add extra constructor code here
}
ALARMARRAY* IPService_i::getAlarm(){
return alarmsArray;
}
--=_alternative 0046005FC2256C40_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">Here some code i wrote that transfer a struct to java client.</font>
<br><font size=2 face="sans-serif">alarmsClient is a member of IPService_i class;</font>
<br><font size=2 face="sans-serif">When the java client invoke this function it suceedded only in the first time and</font>
<br><font size=2 face="sans-serif">then it raised unknow exception(Not a corba exception according the corba messages in traceLevel 25)?</font>
<br><font size=2 face="sans-serif">Any suggestion?</font>
<br>
<br><font size=2 face="sans-serif">class IPService_i: public POA_IPService,</font>
<br><font size=2 face="sans-serif"> public PortableServer::RefCountServantBase {</font>
<br><font size=2 face="sans-serif">private:</font>
<br><font size=2 face="sans-serif"> // Make sure all instances are built on the heap by making the</font>
<br><font size=2 face="sans-serif"> // destructor non-public</font>
<br><font size=2 face="sans-serif"> //virtual ~IPService_i();</font>
<br><font size=2 face="sans-serif">public:</font>
<br><font size=2 face="sans-serif"> ALARMARRAY* alarmsArray;</font>
<br><font size=2 face="sans-serif"> // standard constructor</font>
<br><font size=2 face="sans-serif"> IPService_i();</font>
<br><font size=2 face="sans-serif"> virtual ~IPService_i();</font>
<br>
<br><font size=2 face="sans-serif"> // methods corresponding to defined IDL attributes and operations</font>
<br><font size=2 face="sans-serif"> ALARMARRAY* getAlarm();</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">};</font>
<br>
<br><font size=2 face="sans-serif">IPService_i::IPService_i(){</font>
<br><font size=2 face="sans-serif"> alarmsArray = createAlarms();</font>
<br><font size=2 face="sans-serif"> // add extra constructor code here</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif">ALARMARRAY* IPService_i::getAlarm(){</font>
<br><font size=2 face="sans-serif"> return alarmsArray;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
--=_alternative 0046005FC2256C40_=--