做的一个地图程序,程序集是其他公司提供的,当往地图里面有大概10000左右的点的时候 ,就会出现如下的错误
异常信息如下
未处理 System.AccessViolationException
Message=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
Source=Microsoft.DirectX.Direct3D
StackTrace:
在 Microsoft.DirectX.Direct3D.Device.DrawIndexedUserPrimitives(PrimitiveType primitiveType, Int32 minVertexIndex, Int32 numVertexIndices, Int32 primitiveCount, Object indexData, Boolean sixteenBitIndices, Object vertexStreamZeroData)
在 TKsoft.Earth.LineStringRender.Render(DrawArgs e) 位置 E:\Object\地图demo\Earth2.5\Renderable\NewLayer\LineStringRender.cs:行号 242
在 TKsoft.Earth.RenderableList`1.Render(DrawArgs drawArgs) 位置 E:\Object\地图demo\Earth2.5\Renderable\RenderableListT.cs:行号 107
在 TKsoft.Earth.WorldWindows.Render() 位置 E:\Object\地图demo\Earth2.5\WorldWindows\WorldWindows.cs:行号 464
在 TKsoft.Earth.WorldWindows.Application_Idle(Object sender, EventArgs e) 位置 E:\Object\地图demo\Earth2.5\WorldWindows\WorldWindows.cs:行号 846
在 System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 AreaRadioMonitoringTest.Program.Main() 位置 E:\Object\海域无线\1DevelopLibrary\2SourceCode\AreaRadioMonitoringTest\Program.cs:行号 18
在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException:
请问各位大神,出现这个异常主要有什么原因!!
c# 读取或写入受保护的内存 异常
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
悬赏问题
- ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
- ¥15 C# datagridview 单元格显示进度及值
- ¥15 thinkphp6配合social login单点登录问题
- ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
- ¥15 如何在scanpy上做差异基因和通路富集?
- ¥20 关于#硬件工程#的问题,请各位专家解答!
- ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
- ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
- ¥30 截图中的mathematics程序转换成matlab
- ¥15 动力学代码报错,维度不匹配