通过Teamviewer连接时,WPF应用程序崩溃

通过Teamviewer连接时,WPF应用程序崩溃,第1张

概述通过Teamviewer连接时,WPF应用程序崩溃

与TeamVIEwer连接到运行我的WPF应用程序的设备时遇到问题。 如果build立了这个连接,我的WPF应用程序崩溃,出现以下exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Cannot create a file when that file already exists at MS.Win32.UnsafeNativeMethods.GetwindowText(HandleRef hWnd,StringBuilder lpString,Int32 nMaxCount) at System.windows.automation.Peers.WindowautomationPeer.GetnameCore() at System.windows.automation.Peers.automationPeer.UpdateSubtree() at System.windows.ContextLayoutManager.fireautomationEvents() at System.windows.ContextLayoutManager.UpdateLayout() at System.windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget) at System.windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Object args,Int32 numArgs) at System.windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Int32 numArgs,Delegate catchHandler) at System.windows.Threading.dispatcherOperation.InvokeImpl() at System.windows.Threading.dispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,Object state) at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext,Object state) at System.windows.Threading.dispatcherOperation.Invoke() at System.windows.Threading.dispatcher.ProcessQueue() at System.windows.Threading.dispatcher.WndProcHook(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean& handled) at MS.Win32.HwnDWrapper.WndProc(IntPtr hwnd,Boolean& handled) at MS.Win32.HwndSubclass.dispatcherCallbackOperation(Object o) at System.windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Delegate catchHandler) at System.windows.Threading.dispatcher.LegacyInvokeImpl(dispatcherPriority priority,TimeSpan timeout,Delegate method,Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd,IntPtr lParam) at MS.Win32.UnsafeNativeMethods.dispatchMessage(MSG& msg) at System.windows.Threading.dispatcher.PushFrameImpl(dispatcherFrame frame) at System.windows.Threading.dispatcher.PushFrame(dispatcherFrame frame) at System.windows.Application.Rundispatcher(Object ignore) at System.windows.Application.RunInternal(Window window) at System.windows.Application.Run(Window window)

这个问题似乎和这里描述的一样。

在这个问题的评论中,剪贴板的用法被认为是造成这个问题的一个可能原因。 但是我的WPF应用程序不使用剪贴板。

我希望有人能帮我find这个例外的原因。

如何给程序更多的权限,比用户启动它

将消息发送到windows GUI线程

我应该如何在windows上创build自定义graphics控制台/terminal?

C# – 使用OnStart方法来调用一个线程

从.NET注册免费激活本机COM(activex)组件

ServiceBase.Run(数组)只在数组上开始第一个入口

如何将文本文件的行添加到ListBox(C#)上的单个项目

如何判断提供的文件是否真的是registryconfiguration单元

在windows窗体中注册MouseEnter / MouseLeave事件禁用控件?

在C#中使用Socket改进TCP转发器

我自己解决了这个问题。 这是由MainWindow的空标题引起的。 设置完成后,问题就解决了。

总结

以上是内存溢出为你收集整理的通过Teamviewer连接时,WPF应用程序崩溃全部内容,希望文章能够帮你解决通过Teamviewer连接时,WPF应用程序崩溃所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1290526.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存