很多时候,当我通过断开远程网络来更改 VPN 状态时,我的 VS 实例会立即崩溃。
这是我在事件日志中能找到的最接近的东西。有人对此有任何想法吗?Exception: System.Net.NetworkInformation.NetworkInformationException
Message: Invalid access to memory location
StackTrace: at System.Net.NetworkInformation.SystemNetworkInterface.GetAdaptersAddresses(AddressFamily family, FixedInfo fixedInfo)
at System.Net.NetworkInformation.SystemNetworkInterface.PostWin2KGetNetworkInterfaces(AddressFamily family)
at System.Net.NetworkInformation.SystemNetworkInterface.GetNetworkInterfaces(AddressFamily family)
at System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable()
at System.Net.NetworkInformation.NetworkChange.AvailabilityChangeListener.ChangedAddress(Object sender, EventArgs eventArgs)
at System.Net.NetworkInformation.NetworkChange.AddressChangeListener.AddressChangedCallback(Object stateObject, Boolean signaled)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
最佳答案
我不时在 Windows 7 上运行我的 32 位应用程序(它是在启用/LARGEADDRESSAWARE 的情况下构建的)时遇到此异常。在尝试查找问题时,我遇到了一个似乎可以解决该问题的修补程序。
尝试以下修补程序,看看是否为您修复了它:http://support.microsoft.com/kb/2588507
关于visual-studio-2010 - Visual Studio 2010 - 在 VPN 网络更改时崩溃......有什么想法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6047746/