使用CefSharp的Winforms崩溃并导致Access冲突
我有一个WinForms应用程序将运行数小时。它在3-4小时后开始间歇性地坠毁。它使用的是夏普。事件日志显示错误与CEFSharp有关,但我不能再继续下去了。如有任何帮助,将不胜感激使用CefSharp的Winforms崩溃并导致Access冲突,winforms,chromium,cefsharp,Winforms,Chromium,Cefsharp,我有一个WinForms应用程序将运行数小时。它在3-4小时后开始间歇性地坠毁。它使用的是夏普。事件日志显示错误与CEFSharp有关,但我不能再继续下去了。如有任何帮助,将不胜感激 Machine: Windows 7 Sp1 VC++ runtime installed .NET framework 4.7 The crash dump shows below information: Exception: the thread tried to read from or write to
Machine: Windows 7 Sp1
VC++ runtime installed
.NET framework 4.7
The crash dump shows below information:
Exception: the thread tried to read from or write to a virtual
address for which it does not have the appropriate access.
Tried debugging crash dump, but not useful
事件日志如下:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-05-31T14:38:54.000000000Z" />
<EventRecordID>920</EventRecordID>
<Channel>Application</Channel>
<Security />
</System>
- <EventData>
<Data>Application: Client.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled
exception. Exception Info: System.AccessViolationException at
CefSharp.Internals.MCefRefPtr<CefPostData>.op_Assign(CefPostData*) at
CefSharp.Internals.CefPostDataWrapper.~CefPostDataWrapper() at
CefSharp.Internals.CefPostDataWrapper.Dispose(Boolean) at
CefSharp.Internals.CefPostDataWrapper.Dispose() at
Client.AsmxRequestHandler+
我也有同样的问题。看起来问题在于您处理了PostData
using (var postData = request.PostData)
如果删除该行,问题似乎已解决 您正深陷CefSharp的泥潭,使用是解决此类稳定性问题的最佳方法。您使用的是什么版本?您的请求处理程序代码是什么样子的?您使用的是什么版本?您的请求处理程序代码是什么样子的?@amaitland很抱歉响应太晚,它的CefSharp.WinForms“version=“71.0.0”和cef.redist.x86和x64=3.3578.1864..请求处理程序是处理各种请求的通用处理程序,并不奇怪..它使用Task.Run()=>…希望它能回答?问题是否会在73.1.130版本中重现?我需要查看请求处理程序代码,请编辑您的问题并添加源代码。
using (var postData = request.PostData)