*****中的0x00ec6c03处的未处理异常.EXE:0xC0000005:访问冲突读取位置0x00001234

人气:384 发布:2022-09-22 标签: c++

问题描述

我有一个EXE文件(由供应商提供),它将调用dll。我在发布模式下使用Visual Studio 2008 Express Edition编译了C代码,并为我们的应用程序提供了必要的设置。它成功编译并创建了一个DLL。 当我运行Vendor提供的exe引用dll(我的C代码编译的结果)时,在运行时它退出异常显示一个窗口说The Memory在XXXXXXXX引用内存xxxxxxx。内存无法读取。 它还说单击确定终止并取消调试。如果我点击好吧它退出。如果我按下取消它将打开VS 2008并Debbugs代码并抛出一个异常说在0x00ec6c03在*****中的未处理异常.EXE:0xC0000005:访问冲突读取位置0x00001234。 请建议我找到造成这个问题的代码。 希望我能找到解决方案我的问题在这里。从过去1个月开始敲我的头。 先谢谢。 谢谢 Sn

Hi, I have an EXE file(Provided by the Vendor) which will call the dll. I compiled the C code using Visual Studio 2008 Express Edition in Release Mode with neccessary settings for our Application. It compiled successfully and created an dll. When I ran the Vendor provided Exe which references the dll(Outcome of my C code compilation), during runtime it was exiting Abnormally showing an window saying that "The Memory at "XXXXXXXX" referenced memory at "xxxxxxx". The Memory Could not be read. It also says click ok to terminate and cancel to Debug. If I click on OK it exits. If I press on cancel it will open with VS 2008 and Debbugs the code and throws an exception saying "Unhandled exception at 0x00ec6c03 in *****.EXE: 0xC0000005: Access violation reading location 0x00001234". Please suggest me in finding the piece of code that is creating this problem. Hoping I could Find a solution for my problem here. Banging my head from past 1 Month. Thanks in Advance. Thanks Sn

推荐答案

您需要与EXE的制造商交谈 - 这是almo肯定你在某处返回了一个错误的值并且他们的代码试图将它用作指针:地址1234十六进制是相当可疑的 - 你是否随时使用该值? 当然,我们无法帮助你 - 我们不知道它是什么,你如何编写你的DLL或其他任何东西。对不起 - 但是和他们谈谈,而不是我们! You need to talk to the manufacturers of the EXE - it is almost certainly that you are returning a wrong value somewhere and their code is trying to use it as a pointer: the address 1234 hex is rather suspicious - do you use that value at any time? Certainly we can't help you - we have no idea what EXE it is, how you wrote your DLL or anything else. Sorry - but talk to them, not us!

825