“重新加载文件?” 代码块中的错误

发布于 2024-07-20 15:21:35 字数 513 浏览 5 评论 0 原文

我使用代码块作为 C++ 的 IDE,每隔 10 分钟左右我就会得到以下信息 错误消息:

“重新加载文件?文件 c:...node.cpp 在 IDE 外部被修改。是否要重新加载 它? (您将丢失安迪未保存的工作)“是/否/全部/取消

如果我错误地单击“是”,有时我会丢失最后几分钟的工作。如果我 单击“否”,然后一切正常。

所以我下载了“进程监视器”来找出哪个程序正在访问我的 cpp 文件 它告诉我 SVCHost 可能是罪魁祸首。

据我所知,SVCHost 负责各种各样的事情。 有谁知道我可以做什么来停止接收此错误消息?

注意此错误消息在我使用代码块的第一个月左右没有出现, 但我不知道我做了什么可能导致了这个问题。

[屏幕截图][http://i44.tinypic.com/sgk3sx.jpg]

I'm using codeblocks to as my IDE for C++ and every 10mins or so I get the following
error message:

"Reload File? File c:...node.cpp is modified outside the IDE. Do you want to reload
it? (you will lose andy unsaved work)" Yes/No/All/Cancel

If I click yes by mistake sometimes I lose the last couple of minutes of work. If I
click no then everything remains ok.

So I downloaded "Process Monitor" to find out what program was accessing my cpp file
and it tells me that SVCHost may be the culprit.

As far as I'm aware SVCHost is responsible for all sorts of things. Does anyone have any idea what I can do to stop receiving this error message?

N.B. This error message didn't appear for the first month or so that I used codeblocks,
but I have no idea what I've done that might have caused the problem.

[Screenshot][http://i44.tinypic.com/sgk3sx.jpg]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦境 2024-07-27 15:21:35

我遇到了同样的问题,我通过删除“检查外部修改的文件”前面的勾来解决它

设置-> 环境-> 常规设置

I came across the same problem and I resolved it by removing a tick in front of "check for externally modified files" in

Settings -> Environment -> General settings

晌融 2024-07-27 15:21:35

您说得对,svchost 是一个由多种不同服务使用的通用进程名称。 我认为原因是为了阻止每个可能想做某事的微小服务的大量进程 - 其中一组将共享一个 svchost 进程。

Process Explorer 来自 Sysinternals 可用于确定特定 svchost 进程正在执行哪些服务找到进程 ID(JPEG 文件中的 1296)并双击该条目。

然后,在出现的属性对话框中,选择服务选项卡,它将向您显示使用该进程的特定服务。

如果您不想(或不能)安装 Process Explorer,可以使用命令行:

tasklist /svc /fi "imagename eg svchost.exe"

获取每个进程中所有服务的列表。

You're right in that svchost is a generic process name that is used by a multitude of different services. I think the reason was to prevent a lot of processes for every tiny little service that might want to do something - a group of them will share a single svchost process.

Process Explorer from Sysinternals can be used to figure out what services are being performed by a specific svchost process by finding the process ID (1296 in your JPEG file) and double-clicking on the entry.

Then, in the properties dialog that appears, choose the services tab and it will show you the particular services using that process.

If you don't want to (or can't) install Process Explorer, you can use the command-line:

tasklist /svc /fi "imagename eg svchost.exe"

to get a list of all the services in each process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文