I have nearly the same, if not identical, code to the examples to create a dump file (assuming pcap) to write to, but nothing happens and Visual Studio says "...exited with code -1073741510".
using (PacketCommunicator communicator =
selectedDevice.Open(65536, PacketDeviceOpenAttributes.Promiscuous, 1000))
{
using (PacketDumpFile dumpFile = communicator.OpenDump("testDumpFile.dump"))
{
Console.WriteLine("Listening on " + selectedDevice.Description + "...");
communicator.ReceivePackets(0, dumpFile.Dump);
}
}
I have nearly the same, if not identical, code to the examples to create a dump file (assuming pcap) to write to, but nothing happens and Visual Studio says "...exited with code -1073741510".