Hi. I wrote the other mail yesterday, but I sent it only this morning...
Now I know the reason for your problem: due to the use of COM for the NdisWan adapters, you should open, capture and close such adapters on the SAME thread. This limitation does not affect other "normal" devices (ethernet and so on). I think I should put a FAQ related to it on our website. Have a nice day GV ----- Original Message ----- From: "Marc Wetzel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 8:59 PM Subject: RE: Update: [WinPcap-users] Problems with 3.1b3 and opening \Device\NPF_GenericNdisWanAdapter > > > > > > As I just found out, this ONLY happens if pcap_open is called > > > from inside a thread. If I use it only inside main all works > > > as expected. > > > > > > Clueless... > > > > Sounds to me like your main function opens the handle to WinPcap, and > > the sub-thread is unable to inherit the handle. > > > > ... Just a guess. > > > > No. That would have been just to simple :). It's the function pcap_open that > creates the handle and nothing except pcap_findalldevs() has been executes. > For my special test they also were in the very same function. > And all, but the NdisWan device are working. > > /Marc > > > SLH. > > --- > > Steighton Haley [EMAIL PROTECTED] > > Software Engineer > > > > "There are 10 types of people in this world, > > those who understand binary, and those who don't." > > > > > > > > ====================== > > This is the WinPcap users list. It is archived at > > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > > > To unsubscribe use > > mailto: [EMAIL PROTECTED] > > ====================== > > > > ================================================================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED] > ================================================================== > ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
