I made a mistake in the last mail
it should be "boolean LoadFile( ..., out FILE_INFO file );" in the second
idl file

2008/9/19 zhi lee <[EMAIL PROTECTED]>

>  the idl file is defined as follows:
>
> //start
> typedef sequence<octet>   FILE;
>  struct FILE_INFO
>  {
>   FILE      file;
>   long      readsize;
>  };
> boolean LoadFile( ..., inout FILE_INFO file );
> //end
>
> i used FILE_INFO_var to deliver and get the context of a file.
> but when i called the function LoadFild(...), it failed at the client
> point.
> and when i debug and trace where it failed, i found it throwed an exception
> when corba called invoke.
>
> but when i defined idl as follows and use TVarVar.out(), it works well.
>  //start
> typedef sequence<octet>   FILE;
>  struct FILE_INFO
>  {
>   FILE      file;
>   long      readsize;
>  };
> boolean LoadFile( ..., inout FILE_INFO file );
> //end
>
>
> I don't know why, and hope someone can help me to solve this problem.
>
>
> note: the main purpose of this function is to load file from a server
>
>
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to