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
pcap_findalldevs crashes - only when under Visual Studio debugger #393
Comments
To complete the description, I tried to deactivate the Debug Heap as described in the referenced thread below, with no luck. Differences between running an executable with Visual Studio debugger vs without debugger Also tried on my laptop, same behaviour. |
Ok, looks like we called RegCloseKey on something that wasn't open. I'm analyzing it now to see where the bug is. Thanks for reporting! |
Stay tuned for the next Npcap release, which will fix this. |
Alright, thanks for looking into it that fast! (ok, I misread the debug info, sorry about the misleading ppItems non-sense!) |
When building a simple test example and running it under Win10 inside Visual Studio debugger, I get a crash on calling "pcap_findalldevs" or "pcap_findalldevs_ex". When running outside Visual Studio debugger, no crash and works as expected.
Not related to dll load as I have no such crash when trying to call other functions from npcap (such as pcap_remoteact_cleanup or pcap_wsockinit priori to the call, just for testing purpose). Same behaviour with delay dll loading or loading at startup.
From stack trace and debug symbols, I understand it occurs on line 593 of AdInfo.cpp, where ppItems is null and is dereferenced - only when executed inside Visual Studio debugger.
Known issue? What debug info would be useful to fix?
VS2017 15.6.4 (latest)
The text was updated successfully, but these errors were encountered: