[Winpcap-users] memory leak in pcap_findalldevs_ex?

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Feb 13 16:09:39 GMT 2007


----- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070213/20187e35/attachment.htm


More information about the Winpcap-users mailing list