I have a remoting server. I have an unmanaged client and some screens(in C#) that use the server. When the clients are up, they get connected to the server and is working fine..but after 1 or 2 hours the connection to the server gets broken.
Lifetime of the sever is leased to infinite....
I have a class RemotingBase which is derived from MarshalByRefObj ect and also InitializeLifet imeService is overriden as follows
InitializeLifet imeService()
{
ILease lease = (ILease)Marshal ByRefObject::In itializeLifetim eService();
if (lease.CurrentS tate == LeaseState.Init ial)
{
lease.InitialLe aseTime = TimeSpan::Zero;
}
}
Can anyone tell me how to solve this....
Also note that there is a managed C++ wrapper class is developed to make use of an interface , say, IToolInterface, in the remoting server....Unman aged client connects to the server using this wrapper class. I don't know whether this has to do anything with the issue...
Lifetime of the sever is leased to infinite....
I have a class RemotingBase which is derived from MarshalByRefObj ect and also InitializeLifet imeService is overriden as follows
InitializeLifet imeService()
{
ILease lease = (ILease)Marshal ByRefObject::In itializeLifetim eService();
if (lease.CurrentS tate == LeaseState.Init ial)
{
lease.InitialLe aseTime = TimeSpan::Zero;
}
}
Can anyone tell me how to solve this....
Also note that there is a managed C++ wrapper class is developed to make use of an interface , say, IToolInterface, in the remoting server....Unman aged client connects to the server using this wrapper class. I don't know whether this has to do anything with the issue...
Comment