norrisng / FcomClient

Forwards private and frequency messages on IVAO and VATSIM via Discord DM.
https://www.norrisng.ca/fcom
GNU General Public License v3.0
7 stars 3 forks source link

FCOM Client crash problem #14

Open sparrowhe opened 1 year ago

sparrowhe commented 1 year ago
2023-06-08 04:20:58Z: [CRASH] SharpPcap.PcapException: Unable to open the adapter (rpcap://\Device\NPF_{9F062D47-930C-4BC3-9361-74F82F25D344}). Error opening adapter: 文件名、目录名或卷标语法不正确(this is a error message in Chinese system, Google translate: Incorrect filename, directory name, or volume label syntax)。  (123)
   SharpPcap.LibPcap.LibPcapLiveDevice.Open(DeviceMode mode, Int32 read_timeout, MonitorMode monitor_mode)
   SharpPcap.LibPcap.LibPcapLiveDevice.Open(DeviceMode mode, Int32 read_timeout)
   FcomClient.UI.FcomClient.Main(String[] args)

I confirm that I have installed winpcap, and I am using the newest FCOM client

xfoxfu commented 9 months ago

I am having a similar problem on Windows 11 with Npcap 1.77.

2023-10-20 06:57:20Z: [CRASH] SharpPcap.PcapException: Unable to open the adapter (rpcap://\Device\NPF_{****************}). Error opening adapter: The filename, directory name, or volume label syntax is incorrect.  (123)
   at SharpPcap.LibPcap.LibPcapLiveDevice.Open(DeviceMode mode, Int32 read_timeout, MonitorMode monitor_mode)
   at SharpPcap.LibPcap.LibPcapLiveDevice.Open(DeviceMode mode, Int32 read_timeout)
   at FcomClient.UI.FcomClient.Main(String[] args)

I have refactored the code to use SharpPcap 6.2.5 and things just worked. I think the problem is related to a too old version of SharpPcap.