- fixed bug in .net implementation. Garbage collected command termination handler.

pull/6/head
Michael Zillgith 10 years ago
parent bf4847b6b3
commit 6e260b88a4

@ -164,6 +164,7 @@ namespace IEC61850
commandTerminationHandler(commandTerminationHandlerParameter, this);
}
private InternalCommandTerminationHandler intCommandTerminationHandler;
internal ControlObject (string objectReference, IntPtr connection, IedConnection iedConnection)
{
@ -174,7 +175,7 @@ namespace IEC61850
if (this.controlObject == System.IntPtr.Zero)
throw new IedConnectionException("Control object not found", 0);
InternalCommandTerminationHandler intCommandTerminationHandler = new InternalCommandTerminationHandler (MyCommandTerminationHandler);
intCommandTerminationHandler = new InternalCommandTerminationHandler (MyCommandTerminationHandler);
ControlObjectClient_setCommandTerminationHandler(controlObject, intCommandTerminationHandler, controlObject);
}

Loading…
Cancel
Save