Hi,
We are using the python interface to ZOS-API and for some reason it is crashing out. To Debug we attempted to check the app objects precense with the following:
logMessage('App Object Check: '+str(zos.TheApplication))
and it indicates correctly that the object exists:
App Object Check: ZemaxUI.Common.ViewModels.ZOSAPI_Application
However immediatly after that call it crashes out with the following:
System.Runtime.Remoting.RemotingException: Object '/ef964475_20c0_44b1_b91a_d1be251d9e4c/yqd6tswp6jnufd1newpgn9sc_1.rem' has been disconnected or does not exist at the server.
Server stack trace:
at System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.Object.ToString()
at Python.Runtime.ClassBase.tp_str(IntPtr ob)
Have any ZOS-API users reported such behaviour? and if so are there any remedies or clues as to what might be happening?
Secondly, what is the ZOSAPI.APINetCallback for? and how can we use it? As I have a suspicion that it's related to the above crash, or could help solve it. I'm interested in using InitializeLifetimeService() however I did not see it in any examples provided.
Your help would be greatly appreciated.