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

ResolveAsync ObjectDisposedExceptions #227

Open
crezyoz opened this issue Feb 27, 2022 · 1 comment
Open

ResolveAsync ObjectDisposedExceptions #227

crezyoz opened this issue Feb 27, 2022 · 1 comment

Comments

@crezyoz
Copy link

crezyoz commented Feb 27, 2022

I'm working in C# .NET5 WPF using ResolveAsync to find network devices. It always finds all devices but takes a while to complete because of these exceptions. For every device it finds, another exception occurs. If I have no devices attached I will still see the 3 exceptions listed below. I have no idea where to start with this ! Ideally, I would like to solve it because ResolveAsync is pretty fast when it isn't pausing due to these exceptions

var responses = await ZeroconfResolver.ResolveAsync("_ourhost._tcp.local.", new TimeSpan(0, 0, 2), 4, 500,callback);

Exception thrown: 'System.ObjectDisposedException' in System.Net.Sockets.dll
Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll
Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll

@crezyoz
Copy link
Author

crezyoz commented Jul 20, 2022

I've been trying to figure out how to solve this for many months now and I just don't understand what it happening. If anyone can shed some light on this I would greatly appreciate it. Can I ignore these? Do they slow down the Resolve? Please help.

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