Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible ObjectDisposedException on starting a call - SafeHandle may have been disposed #36

Open
maxx313 opened this issue Nov 4, 2020 · 0 comments

Comments

@maxx313
Copy link

maxx313 commented Nov 4, 2020

On starting a new call, the used SafeHandle might be already closed on calling GatherCallStatus. This might have happened in the GatherCallInfo method, which is called in TapiCall ctor before GatherCallStatus. In a certain case, the handle is deallocated in that method.

System.ObjectDisposedException: Safe handle has been closed
bei System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
bei System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
bei JulMar.Atapi.Interop.NativeMethods.lineGetCallStatus(HTCALL hCall, IntPtr lpCallStatus)
bei JulMar.Atapi.TapiCall.GatherCallStatus()
bei JulMar.Atapi.TapiCall..ctor(TapiAddress addrOwner, UInt32 hCall)
bei JulMar.Atapi.TapiAddress.MakeCall(String address, Int32 countryCode, MakeCallParams param)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant