C#程序中出现的异常,大神帮忙看下

未处理System.AccessViolationExceptionMessage=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。Source=4222卡Stac... 未处理 System.AccessViolationException
Message=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
Source=4222卡
StackTrace:
在 _4222卡.ReadWrite.GetCardName(TApplyArea& ApplyArea, String p_Name, Int32& i_Error)
在 _4222卡.ReadWrite.TReadWriteSystemCard.TGetCardName(String str_Name) 位置 C:\Users\FUCK\Desktop\4222卡\4222卡\ReadWrite.cs:行号 224
在 _4222卡.ReadWrite.TReadWriteSystemCard.TJudgeCardType() 位置 C:\Users\FUCK\Desktop\4222卡\4222卡\ReadWrite.cs:行号 237
在 _4222卡.Form1.button2_Click(Object sender, EventArgs e) 位置 C:\Users\FUCK\Desktop\4222卡\4222卡\Form1.cs:行号 147
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 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)
在 _4222卡.Program.Main() 位置 C:\Users\FUCK\Desktop\4222卡\4222卡\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:
展开
 我来答
happy09li
2012-06-01 · 贡献了超过177个回答
知道答主
回答量:177
采纳率:0%
帮助的人:46.8万
展开全部
磁盘是否有写入的权限?
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式