About Classes transmit

in Help Center
In .ice
...
class other
{
...
};
class mainobj
{
otherobj other;
};
sequence<mainobj>mainobjlist;
interface transmiter
{
void push(mainobjlist ol);
};
...
When I call the push function that transmit the mainobj sequence from client to server ,Is the memory leak.
...
class other
{
...
};
class mainobj
{
otherobj other;
};
sequence<mainobj>mainobjlist;
interface transmiter
{
void push(mainobjlist ol);
};
...
When I call the push function that transmit the mainobj sequence from client to server ,Is the memory leak.
0
Comments
- Which operating system you are using
- Which compiler you are using
- Which versions of the above you are using
- Which version of Ice you are using
- The server side code segment
- The client side code segement
- How do you detect the memory leak
- Any other information that may be relevant
I just doubt.
Before ,I find if a object(class) donot manage with main program and they will be memory leak.That is ,In main program ,I push the object in the sequecne that will clear before the program end;This object usually is a part of another more large class . Just like other for mainobj.
class other
{
...
};
class mainobj
{
otherobj other;
};
sequence<mainobj>mainobjlist;
interface transmiter
{
void push(mainobjlist ol);
};
In program ,I always push the mainobj in sequence and clear before the progam end ,in order to prevent memroy leak, the same to class other.
Note,the above take place in client or server.My question is ,when I transmit the mainobj sequence from one to another node(server or client) ,in another program,the class other object donot clear manual,so I just doubt the memory leak will be.
Of course,the vc2003 debuger do not tell me the memory leak happen .
Just like class another for class one
class another
{
...
};
class one
{
another aa;
};