http://bugs.winehq.org/show_bug.cgi?id=32310
Bug #: 32310 Summary: EVEMon needs System.Net.NetworkInformation.NetworkChange implementation Product: Wine Version: 1.5.18 Platform: x86 URL: http://evemon.battleclinic.com/ OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: mscoree AssignedTo: wine-bugs@winehq.org ReportedBy: madewokherd@gmail.com Classification: Unclassified
To reproduce, install EVEMon without .NET, and try to run it.
It crashes on startup with an exception: System.EntryPointNotFoundException: CreateNLSocket at (wrapper managed-to-native) System.Net.NetworkInformation.NetworkChange:CreateNLSocket () at System.Net.NetworkInformation.NetworkChange.EnsureSocket () [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.NetworkChange.Register (System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler d) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.NetworkChange.add_NetworkAvailabilityChanged (System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler value) [0x00000] in <filename unknown>:0 at EVEMon.Common.Net.NetworkMonitor.Initialize () [0x00000] in <filename unknown>:0 at EVEMon.Common.EveMonClient.Initialize () [0x00000] in <filename unknown>:0 at EVEMon.Program.Main () [0x00000] in <filename unknown>:0
CreateNLSocket is an entry point into the MonoPosixHelper library. AFAICT it's only implemented on Unix-like systems and would not be possible to implement on Windows. So we need an alternative implementation of System.Net.NetworkInformation.NetworkChange that's based on the Windows API.
Probably the NotifyAddrChange function could be used to detect changes, using System.Threading.AutoResetEvent and ThreadPool.RegisterWaitForSingleObject to get the event notification into the .NET world.
I think this would be a good introduction to Mono development, if anyone needs one.
https://bugs.winehq.org/show_bug.cgi?id=32310
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later? (I suspect that it is)
https://bugs.winehq.org/show_bug.cgi?id=32310
Dave-C davec.bugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |davec.bugs@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=32310
--- Comment #2 from Dave-C davec.bugs@gmail.com --- Created attachment 51693 --> https://bugs.winehq.org/attachment.cgi?id=51693 EveMon Crash Log: System.Net.Sockets.SocketException: Error looking up error string
Wine 1.7.45 OS: Mac OS-X 10.10
https://bugs.winehq.org/show_bug.cgi?id=32310
--- Comment #3 from Dave-C davec.bugs@gmail.com --- I have attached a trace from an EveMon crash running wine 1.7.45, don't know if its related to this bug or not.
https://bugs.winehq.org/show_bug.cgi?id=32310
BugMeNot winehq@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@mailinator.com
--- Comment #4 from BugMeNot winehq@mailinator.com --- Still an issue in 1.8rc2 installed from homebrew today.
System.EntryPointNotFoundException: CreateNLSocket
--
EVEMon Version: 2.2.1.4022 .NET Runtime Version: 4.0.30319.17020 Operating System: Microsoft Windows NT 5.1.2600.196608 Service Pack 3 Executable Path: "C:\Program Files\EVEMon\EVEMon.exe"
System.Net.Sockets.SocketException: Error looking up error string at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.SendPrivileged (System.Net.IPAddress address, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.Net.IPAddress address, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress, Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions options) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Net.NetworkInformation.Ping:Send (string,int,byte[],System.Net.NetworkInformation.PingOptions) at EVEMon.Common.Net.NetworkMonitor.IsNetworkAvailableManual () [0x00000] in <filename unknown>:0 at EVEMon.Common.Net.NetworkMonitor.Initialize () [0x00000] in <filename unknown>:0 at EVEMon.Common.EveMonClient.Initialize () [0x00000] in <filename unknown>:0 at EVEMon.Program.Main () [0x00000] in <filename unknown>:0
Datafile report:
Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin
0d 0h 00m 00s > Handled exception System.EntryPointNotFoundException: CreateNLSocket at (wrapper managed-to-native) System.Net.NetworkInformation.LinuxNetworkChange:CreateNLSocket () at System.Net.NetworkInformation.LinuxNetworkChange.EnsureSocket () [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.LinuxNetworkChange.Register (System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler d) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.LinuxNetworkChange.add_NetworkAvailabilityChanged (System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler value) [0x00000] in <filename unknown>:0 at System.Net.NetworkInformation.NetworkChange.add_NetworkAvailabilityChanged (System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler value) [0x00000] in <filename unknown>:0 at EVEMon.Common.Net.NetworkMonitor.Initialize () [0x00000] in <filename unknown>:0
https://bugs.winehq.org/show_bug.cgi?id=32310
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://evemon.battleclinic. |http://web.archive.org/web/ |com/ |20120205111727/http://cdn.b | |itbucket.org/BattleClinic/e | |vemon/downloads/EVEMon-inst | |all-1.5.4.3315.exe
https://bugs.winehq.org/show_bug.cgi?id=32310
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com