Thread and receive packets

45 views
Skip to first unread message

Yonka

unread,
Sep 29, 2022, 4:52:55 PM9/29/22
to Pcap.Net Q&A
How can I wrap the ReceivePackets into Thread/Task/Backgroundworker?
I tried to use all these, but I got error: "System.AccessViolationException system.accessviolationexception attempted to read or write protected memory"

thats my code:

Yonka

unread,
Oct 2, 2022, 4:12:49 AM10/2/22
to Pcap.Net Q&A
I got it, the fix was to move the using construction into the thread function, now it works.

четверг, 29 сентября 2022 г. в 23:52:55 UTC+3, Yonka:
Reply all
Reply to author
Forward
0 new messages