Hi,
I am trying to save a state in a C# servant and it seems to become corrupt between construction and the remote method call. Is there something I am doing wrong ?
here is a quick snippet of the code I am using :
public class HelloI : HelloDisp_
{
private IDataProvider _provider;
private string _serviceName;
public HelloI(string serviceName)
{
_serviceName = serviceName;
//creation and call to data provider - works fine
_provider = new DataProvider();
_provider.GetData();
}
public override string GetData()
{
//call to the same dataprovider method - fails.
//The provider error states that it has been shutdown
return _provider.GetData();
}
}
I have tried this outside of the Ice framework and successive calls to the provider works fine. It appears that ice is doing some funny business with this class.
Any help would be appreciated
Regards
Ronnie

Reply With Quote