[omniORB] Re: Getting a marshal Error

Rajesh Khan rajeshkhan808 at gmail.com
Wed Dec 21 02:51:58 GMT 2011


Correction : Actually i get the marshall error when trying to access the
object on the client

On Wed, Dec 21, 2011 at 2:50 AM, Rajesh Khan <rajeshkhan808 at gmail.com>wrote:

> Hi i am getting a CORBA::marshal exception while trying to send an object
>
> This is the function implimentation at the server
>
> CustObj_Cont* CustObj_implimentation::get_obj() throw
> (CORBA::SystemException)
> {
>
>     CustObj_Cont vctor_;
>
>     CustObj obja;
>     obja.val =10;
>
>     vctor_.length(1);
>     vctor_[0]=obja;
>     return &vctor_;
> }
>
> and when i access the method on the receiver (client)  using
>
> static void ProcessObject(TestInt_ptr e)
> {
>     CustObj_Cont* obja = e->get_obj(); //At this point i get the CORBA
> marshall error
> }
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20111221/d29dd6fb/attachment.htm


More information about the omniORB-list mailing list