[Winpcap-users] memory leak in pcap_findalldevs_ex?
Demetrio Megali
demetrio at mediaplan.it
Wed Feb 14 08:35:48 GMT 2007
"net start npf" tell me that the service is already running.
packet.dll version: 3.1.0.27
wanpacket.dll version: 3.1.0.27
wpcap.dll version: 3.1.0.27
npf.sys version: 3.1.0.27
I'm using winpcap 3 because winpcap 4 doesn't detect my wireless adapter and my ethernet adapter.
I tried winpcap 4 beta that detect my wireless adapter and my ethernet adapter and the problem is the same the memory usage increase of 8KB and the v.m. usage increase of 30KB every time i call findalldevs_ex. I have windows xp professional sp2 installed on my machine.
Marvell yukon Gigabit ethernet 10/100/1000Base-T Adapter, Copper RJ-45 (as ethernet adapter).
802.11b USB Wireless LAN Adapter (as wlan adapter).
Is there a method to unload the dll from memory or something else?
Some devices for example the usb modem was detected by findalldevs_ex only after the effective connection and autentication, what can i do to detect these devices without increase the memory usage of my application?
----- Original Message -----
From: Gianluca Varenni
To: winpcap-users at winpcap.org
Sent: Tuesday, February 13, 2007 5:09 PM
Subject: Re: [Winpcap-users] memory leak in pcap_findalldevs_ex?
----- Original Message -----
From: Demetrio Megali
To: winpcap-users at winpcap.org
Sent: Tuesday, February 13, 2007 12:29 AM
Subject: Re: [Winpcap-users] memory leak in pcap_findalldevs_ex?
The virtual memory usage explode the v.m. size increases itself about 30KB every time and the memory usage 8 to 20 KB every time, i use winpcap 4 and there is another strange thing: on my pc the older vesions of wiipcap can find every devices: 56k modem, wireless lan and ethernet adapter; winpcap 4 detect only my 56K modem.
some help?
This sounds quite suspect.
Please open a command line and run "net start npf". It should either tell you that the service was already running, or that it has been started. If not, there's a problem with the installation.
Next, check the version of these files:
- \windows\system32\packet.dll
- \windows\system32\wanpacket.dll
- \windows\system32\wpcap.dll
- \windows\system32\drivers\npf.sys
They should all have the same version (4.0.0.755).
Have a nice day
GV
----- Original Message -----
From: Gianluca Varenni
To: winpcap-users at winpcap.org
Sent: Tuesday, February 13, 2007 2:25 AM
Subject: Re: [Winpcap-users] memory leak in pcap_findalldevs_ex?
Demetrio,
does the virtual memory usage explode if you call findalldevs_ex/freealldevs in a tight loop (i.e. without the 20s pause)? If you use task manager to look at the memory usage, in the processes tab enable the "VM size" column, it's way more useful in case of memory leaks.
Have a nice day
GV
----- Original Message -----
From: Demetrio Megali
To: winpcap-users at winpcap.org
Sent: Monday, February 12, 2007 8:52 AM
Subject: [Winpcap-users] memory leak in pcap_findalldevs_ex?
My program does nothing in particular: it calls findalldevs_ex every 20 seconds,make a list of devices and then call freealldevs; I have noticed that every 20 seconds the memory allocated by the program increments from 8 to 20 KB. I use winpcap 4 on windows xp service pack2. Can you help me? Regards.
-Demetrio
------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
--------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
----------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
------------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070214/26b524ae/attachment-0001.htm
More information about the Winpcap-users
mailing list