第一次机会异常:系统错误8:没有足够的存储空间来执行命令 [英] first chance exception: system error 8: not enough storage space to perform the command

查看:124
本文介绍了第一次机会异常:系统错误8:没有足够的存储空间来执行命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何调试类似的东西?我需要调试器停止并告诉我问题出在哪里。不只是在事件日志中显示它



第一次机会异常:系统错误8:没有足够的存储空间来执行命令



我正在使用delphi2009。这个问题不会经常发生。我不急于使用OutputDebugString调用来跟踪程序!



感谢您的帮助!

解决方案

您正在查看服务器上的资源泄漏,这很有可能...与句柄相关或与内存相关...



我经常发生这种情况,而且总是这样...可能还有其他原因,但我认为资源泄漏是您的第一大原因...



您将不得不找到它并对其进行修复,或者开始对所有内存分配进行调试检查,处理分配,并在无法获取或处理内存的任何时间对其进行记录。

您的CLIENT机器也有可能资源不足,但通常是服务器出了故障...



所有这些都失败了,让我们对您的工作,代码的外观等有了更多的了解,以帮助发现问题。仅仅根据错误,就没什么可做的了。


how do i debug something like this? i need the debugger to stop and show me where the problem is. don't just show it in the event log & then hang.

first chance exception: system error 8: not enough storage space to perform the command

i'm using delphi 2009. the problem doesn't happen regulary. i'm not eager to pepper my program with OutputDebugString calls to track this down!

thank you for your help!

解决方案

You are looking at a resource leak on your server, more than likely... Either handle related, or memory related...

I've had this happen a lot, and it's always the case... There CAN be other causes, but I think a resource leak is your #1 cause...

You are going to have to either find it and fix it, or start putting debug checks in on all memory allocations, handle allocations, and log them anytime you can't get memory, or handles.

It's also possible that your CLIENT machine is out of resources, but usually, it's the server at fault...

Failing all that, give us some more idea of what you are doing, what the code looks like, etc, to help spot issues. Just based on the error alone, isn't a lot to go on...

这篇关于第一次机会异常:系统错误8:没有足够的存储空间来执行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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