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

NpcapDevice SharpPCAP exception SOMETIMES #1861

Open
blakeyjason opened this issue Dec 16, 2019 · 1 comment
Open

NpcapDevice SharpPCAP exception SOMETIMES #1861

blakeyjason opened this issue Dec 16, 2019 · 1 comment

Comments

@blakeyjason
Copy link

@blakeyjason blakeyjason commented Dec 16, 2019

Hi,
first off, thanks for all the hard work - I can't count how many WireShark/npcap installs I've done over the last X years. It's appreciated.

Right now I'm working on a C# .net core app that will concurrently playback multiples PCAPs using packet queues. I'm using the latest nmap release with the latest master of SharpPCAP. I've got each playback in a separate thread (using the Task/async framework in C#).

Sometimes, it works fine. I have had instances where my tool was able to run 10 concurrent playbacks. But a lot of the time, I get an exception, right at start of playbacks. Please see the attached screenshot. It's weird that it's so intermittent.

Please let me know if you need any more data. I'll post up my read/playback method later today, if you think that'll help.

Thanks,
jason
Error

@blakeyjason

This comment has been minimized.

Copy link
Author

@blakeyjason blakeyjason commented Jan 4, 2020

After more trial and error, I find that If I wrap the get interfaces in a loop of 10 tries, I'll eventually get the complete interface list. The same goes for getting the device.... Wrap it up, check for null.

I'm sure it's windows...

Thanks,
jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.