c# - How to fix this error thrown on process exit when using Tibco? -


when using tibco, cause of error?

2014-06-27 07:58:39.8230|error|boot.processes.servicerunner|ctrl-c handler error.| system.objectdisposedexception: safe handle has been closed    @ system.runtime.interopservices.safehandle.dangerousaddref(boolean& success)    @ system.stubhelpers.stubhelpers.safehandleaddref(safehandle phandle, boolean& success)    @ microsoft.win32.win32native.setevent(safewaithandle handle)    @ system.threading.eventwaithandle.set()    @ serviceproxyhelper.setstatestopped(iserviceproxy serviceproxy) in container\serviceproxyhelper.cs:line 387    @ serviceproxyhelper.shellstop() in container\serviceproxyhelper.cs:line 200    @ serviceproxy.shellstop() in container\serviceproxy.cs:line 193    @ boot.processes.servicerunner.consolecancelkeypress(object sender, consolecanceleventargs e) in boot\processes\servicerunner.cs:line 218 ^ 

this caused calling tibco's environment.open() without calling matching tibco environment.close(). until reference count reaches 0, tibco not disposed of properly.

to fix issue in c#, ensure there .dispose() method on every single class calls tibco's environment.open(), , .dispose() call calls tibco's environment.close().


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -