Home

LinqPad 7 crashes on startup (DragDrop registration error)

Hello

Anyone knows what happen with this error, it only ocurres with the new LinqPad 7, previous LinqPad versions works fine in my laptop

Thank you
Manuel

Comments

  • same for me. Log file attached, if it helps.

  • I am experiencing the same exception (System.InvalidOperationException - DragDrop registration did not succeed). This has been consistent through all LinqPad 7 beta releases. Occurs on both Windows 10 and Windows 11. Occasionally will progress through to open the application. I have not experienced this exception on LinqPad 6 or previous.

  • Happens to me as well, Windows 10. Hope it gets sorted soon.

  • Can you please try the 7.1.3 beta - this generates more diagnostic information.

    After running, please post the latest entries in %localappdata%\linqpad\logs.linqpad7\log.txt

    Thanks!

  • edited November 2021

    7.1.3 (X64) 2021-11-15T21:22:18.6755144+08:00 GetWebView2Environment
    [Thread: Name='' State=MTA IsBackground=True Pooled=False Main=True] COMException - Cannot change thread mode after it is set. (0x80010106 (RPC_E_CHANGED_MODE))
    Source=System.Private.CoreLib

    -System.Runtime.InteropServices.Marshal Void ThrowExceptionForHR(Int32) offset: 0x4
    -Microsoft.Web.WebView2.Core.CoreWebView2Environment+d__3 Void MoveNext() offset: 0xC5
    -System.Runtime.ExceptionServices.ExceptionDispatchInfo Void Throw() offset: 0x11
    -System.Runtime.CompilerServices.TaskAwaiter Void ThrowForNonSuccess(System.Threading.Tasks.Task) offset: 0x37
    -System.Runtime.CompilerServices.TaskAwaiter Void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) offset: 0x28
    -System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter TResult GetResult() offset: 0x0 -LINQPad.TaskExtensions+<Then>d__462 Void MoveNext() offset: 0x101
    -System.Runtime.ExceptionServices.ExceptionDispatchInfo Void Throw() offset: 0x11
    -System.Runtime.CompilerServices.TaskAwaiter Void ThrowForNonSuccess(System.Threading.Tasks.Task) offset: 0x37
    -System.Runtime.CompilerServices.TaskAwaiter Void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) offset: 0x28
    -System.Runtime.CompilerServices.TaskAwaiter`1 TResult GetResult() offset: 0x0
    -LINQPad.UI.WebView2Util+<g__GetBSync|12_0>d Void MoveNext() offset: 0x19C

    7.1.3 (X64) 2021-11-15T21:22:18.6770575+08:00 MainThreadInfo: [Thread: Name='' State=MTA IsBackground=True Pooled=False Main=True]

    7.1.3 (X64) 2021-11-15T21:22:21.8668037+08:00 GuiAppHost
    [Thread: Name='' State=MTA IsBackground=True Pooled=False Main=True] InvalidOperationException - DragDrop registration did not succeed.
    Source=System.Windows.Forms

    -System.Windows.Forms.Control Void SetAcceptDrops(Boolean) offset: 0x88
    -System.Windows.Forms.Control Void set_AllowDrop(Boolean) offset: 0x1C
    -LINQPad.UI.QueryEditor Void .ctor(LINQPad.UI.QueryControl) offset: 0x201
    -LINQPad.UI.QueryControl Void CreateEditor() offset: 0x1
    -LINQPad.UI.QueryControl Void .ctor(LINQPad.RunnableQuery, LINQPad.UI.SchemaTree) offset: 0x6DD
    -LINQPad.UI.MainForm LINQPad.UI.QueryControl GetNewQueryControl() offset: 0x1B
    -LINQPad.UI.MainForm LINQPad.UI.QueryControl AddQueryPage(Boolean, Boolean, System.String, System.Nullable`1[LINQPad.QueryLanguage], System.String, Boolean, Boolean, Boolean, Boolean) offset: 0xE
    -LINQPad.UI.MainForm Void .ctor(System.String, Boolean, Boolean, Boolean) offset: 0x481
    -LINQPad.UIProgram Void Run() offset: 0x2CD
    -LINQPad.UIProgram Void Go(System.String[]) offset: 0x2C1
    -LINQPad.UIProgram Void Start(System.String[]) offset: 0x2C

    INNER: ThreadStateException - Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
    Source=System.Windows.Forms

    -System.Windows.Forms.Control Void SetAcceptDrops(Boolean) offset: 0x27
    

    Main thread: [Thread: Name='' State=MTA IsBackground=True Pooled=False Main=True]

    First Chance Data:
    -System.Windows.Forms.Control.SetAcceptDrops(accept) offset=0x27

  • Try starting LINQPad with the -tt switch and let me know if it fixes the problem

    LINQPad7-x64 -tt
    
    
  • Yes. By starting the application with the -tt switch, it no longer crashes.

  • Thanks, everyone.

    This should now be permanently resolved in 7.1.4.

  • Joe, has v7.1.4 been released yet? I don't see it on the site.

  • When do you expect 7.1.4 to be out (not the beta)?

  • If there are no further issues, I'll push 7.1.4 to RTM tomorrow or Friday.

  • That's good news. Thanks, Joe.

Sign In or Register to comment.