zhi lee
2008-09-19 03:05:10 UTC
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
//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