Hi yaowen,
You need to put the function call in a control statement. Below is sample
code from iflist:
if (pcap_findalldevs_ex(source, NULL, &alldevs, errbuf) == -1)
{
fprintf(stderr,"Error in pcap_findalldevs: %s\n",errbuf);
exit(1);
}
then it will return or exit the program in case there is error after calling
the function.
Regards,
Evelyn
-----Original Message-----
From: fyaowen [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: [WinPcap-users] pcap_findalldevs blocks!
Hi, all
I am developping network applications with wcap on Win98SE
platform. After the system booted, I disabled the real netcard
(through my computer->property->device manager->network adapters).
Then I run the wcap application, and the pcap_findalldevs blocks.
When I Ctrl+Alt+Del to kill the process, the system crashed and
blue screen appeared.
Is this a bug of wcap?
Any suggestion is apreciate. Thanks a lot.
fyaowen
______________________________________
===================================================================
==================================================================
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]
=================================================================