<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>My application calls
an open function in which it's stated the open adaptor sequence of winpcap
comands including pcap_findalldevs.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>Afterward it is
implemented in a different thread the functionality of listening on the selected
adaptor and the functionality of stop listening.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>I've observed that
after following the sequence listen-stop-listen my application crashes.
Following the bug in debug the following steps happen:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>
- pcap_findalldevs</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>
- > pcap_add_if_win32</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006> -
> add_or_find_if</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006> -
> pcap_open_live</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=054114014-31102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>And he is trying to
open a generic adaptor descovered by findalldevs and
crashes...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=054114014-31102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>My question is
why this happens the second time I call pcap_findalldevs when I had already
closed the adaptor in the call of stop listening..is this a problem with Winpcap
or with my code...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=054114014-31102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=054114014-31102006>Thanks a lot for any
info</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=054114014-31102006>Moni</SPAN></FONT></DIV></BODY></HTML>