Process.MainModule.FileName:“仅一部分ReadProcessMemory或WriteProcessMemory请求已完成". [英] Process.MainModule.FileName: "Only part of a ReadProcessMemory or WriteProcessMemory request was completed"

查看:226
本文介绍了Process.MainModule.FileName:“仅一部分ReadProcessMemory或WriteProcessMemory请求已完成".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用与Process.MainModule.FileName有关的此错误搜索了google,但是没有错误消息链接,仅ReadProcessMemory或WriteProcessMemory请求的一部分已完成".这些论坛上的主题提示存在64位问题,但很快就被排除在外,因为在32位环境中也有报道.该线程的标记答案表明这是一个安全问题,但是我认为与映射到``干净''项目有关的任何内容都没有更改.

    如果是安全性问题,则可以尝试在调试器下运行应用程序". 处理.MainModule失败

    I have searched google with this error in relation to Process.MainModule.FileName however none link with the error message, "Only part of a ReadProcessMemory or WriteProcessMemory request was completed".

    There however was one thread on these forums suggest a 64 bit issue however that was soon excluded as it was reported also in a 32 bit enviroment. The marked answer to that thread suggested it is a security problem however I don't think anything has been changed in relation to that comapred to a 'clean' project.

    • "If it is a security problem, you may try to run your application under the debugger" Process.MainModule failure
    • 我正在通过Visual Studio对该应用程序进行实际调试,因此我不确定在诊断此问题的过程中下一步该怎么做.

      我正在在64位环境中使用32位进行调试,因为关于DirectX兼容性问题,如果有人对我如何能够更改安全设置"(假设上面引用的内容是正确的)有任何想法以允许这样做,将不胜感激.

      谢谢

      I am in-fact debugging this application through Visual Studio so I am not quite sure what to do next in the process of diagnosing this problem.
       
      I am debugging using 32 bit in a 64 bit enviroment because of DirectX compatability issues, if anyone has any ideas on how I may be able to alter the 'security settings' (assuming what is quoted above is correct) to allow this it would be greatly appreciated.

      Thanks

      推荐答案

      影子,

      根据您的描述,可能有几件事.您正在执行什么清除程序?结果是否随过程许可而变化?如果将所说的文件放到bin \ debug目录中,问题会消失吗?

      我在源目录以外的目录中引用.dll时遇到的问题似乎是类似的.我将密切关注此线程,因为这可能也是我提出的问题的答案.

      祝您好运,

      John.
      Hi Shadow,

      From your description it could be several things.  What clearance are you running the process on?  Do the results vary depending on the process clearance? Does the problem disappear if you put said file into the directory of bin\debug?

      The problem I'm having with referencing .dll in other than the source directory appears to be analgous.  I'll watch this thread closely, because it is possible that is also the answer to the question I am posing.

      Best of luck to you,

      John.


      这篇关于Process.MainModule.FileName:“仅一部分ReadProcessMemory或WriteProcessMemory请求已完成".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆