Failed reading from device. WinPcap Error: read error: PacketReceivePacket failed"

Mar 26, 2012 at 1:29 PM

i am using Pcapdotnet DLLs to send buffer of packet and show the bandwith statistics and after finish to send the buffer the PacketCommunicatorMode.ReceiveStatistics(0, StatisticsHandler) crash with error "Failed reading from device. WinPcap Error: read error: PacketReceivePacket failed".

how can i close the statistics mode after finish send all the packet buffer ?

Coordinator
Mar 30, 2012 at 5:56 PM

Hi psptst1,

 

Try to use PacketCommunicator.Mode property to set the required mode.

 

I hope this helps,

 

Boaz.

Mar 31, 2012 at 7:40 AM

after finish to send the buffer i try to change the PacketCommunicator.Mode property to:

 

mOutputCommunicator.Mode = PacketCommunicatorMode.Capture

mOutputCommunicator.Mode = PacketCommunicatorMode.KernelDump

mOutputCommunicator.Mode = PacketCommunicatorMode.KernelMonitor

and still same error

Coordinator
Mar 31, 2012 at 7:42 AM

Try and use different PacketCommunicators to do the different operations.

Please also post the full exception details including the entire call stack.