每当我在LINQPad中运行最简单的查询时,它都会崩溃。
我尝试了所有显而易见的东西,从重新启动计算机到获取最新版本等。系统上唯一的近期更改是安装了VS2010 SP1。
关于如何重新启动和运行它的任何想法,或者问题的根源可能是什么?以下是两个事件:
应用程序错误
Faulting application name: LINQPad.exe, version: 4.31.0.0, time stamp: 0x4cfb29be
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0x18d8
Faulting application start time: 0x01cc2f2350f6d975
Faulting application path: C:\Program Files\LINQPad4\LINQPad.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 992bfc75-9b16-11e0-9419-b8ac6f2e5a9a
.NET运行时错误
Application: LINQPad.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException
Stack:
at System.RuntimeMethodHandle._InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType)
at System.RuntimeMethodHandle.InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.Signature, System.Reflection.MethodAttributes, System.RuntimeType)
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(System.Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
at System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
at System.Windows.Forms.Control.Invoke(System.Delegate)
at LINQPad.UI.QueryControl._query_QueryStarted(System.Object, System.EventArgs)
at LINQPad.Query.OnQueryStarted()
at LINQPad.Query.Run(System.String)
at LINQPad.Query.Run()
at LINQPad.UI.QueryControl.Run()
at LINQPad.UI.QueryControl.btnExecute_Click(System.Object, System.EventArgs)
at System.Windows.Forms.Control.OnClick(System.EventArgs)
at System.Windows.Forms.Button.OnClick(System.EventArgs)
at System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
at LINQPad.UI.ImageButton.OnMouseUp(System.Windows.Forms.MouseEventArgs)
at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at LINQPad.Program.Run(System.String, Boolean, System.String, Boolean, Boolean, System.String)
at LINQPad.Program.Go(System.String[])
at LINQPad.Program.Start(System.String[])
at LINQPad.ProgramStarter.Run(System.String[])
at LINQPad.Loader.Main(System.String[])
最佳答案
听起来.NET Framework或环境中正在发生不良情况。
stacktrace中的最后一个LINQPad方法是异常处理的,因此很奇怪。您可能想尝试最近的实验构建-巧合的是,它不再具有出现在堆栈跟踪中的方法。我怀疑您在其他地方会遇到错误;也许诊断会提供更多信息:
http://www.linqpad.net/special/LINQPad4.zip
关于.net - 每次使用.NET Runtime异常运行查询时,LINQPad崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6409457/