Indy、ADO 和 Delphi 2009 的问题
我在 Delphi 2009 中使用 ADO 和 indy 时遇到问题。
在 delphi 2009 中运行时,我的项目总是在退出时崩溃。
这可以通过在 delphi 2009 中执行以下操作来重现:
- 创建一个新项目
- 将 TAdoConnection 组件添加到表单中。创建到 sql server 数据库的连接并将连接属性设置为 true。
- 将 IdHttp 添加到表单的 use 子句中。
- 运行,关闭应用程序时每次都会发生错误。
这是错误详细信息
Problem Event Name: APPCRASH
Application Name: Project1.exe
Application Version: 0.0.0.0
Application Timestamp: 4e787e97
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: 4000001f
Exception Offset: 000a2562
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2057
Additional Information 1: d1ab
Additional Information 2: d1ab624ec7d094c26a73530c245a3468
Additional Information 3: d1ab
Additional Information 4: d1ab624ec7d094c26a73530c245a3468
一旦我从使用子句中删除 IdHttp,就不会发生错误。
任何人都知道我可以做些什么来解决这个问题,或者建议我可以用于 http 的 Indy 不同的组件套件。
I've a problem using ADO and indy in Delphi 2009.
My project always crashes on exit when running in delphi 2009.
This can be reproduced by doing the following in delphi 2009:
- Create a new project
- Add TAdoConnection component to the form. Create a connection to a sql server database and set the connected property to true.
- Add IdHttp to the uses clause of the form.
- Run, on closing the application the error occurs every time.
This is the error details
Problem Event Name: APPCRASH
Application Name: Project1.exe
Application Version: 0.0.0.0
Application Timestamp: 4e787e97
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: 4000001f
Exception Offset: 000a2562
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2057
Additional Information 1: d1ab
Additional Information 2: d1ab624ec7d094c26a73530c245a3468
Additional Information 3: d1ab
Additional Information 4: d1ab624ec7d094c26a73530c245a3468
As soon as I remove IdHttp from the uses clause, no error occurs.
Anyone got any ideas as to what i can do to sort this out, or suggest a different component suite to Indy I can use for http.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Indy 与 ADO 完全分开。仅仅在uses子句中存在IdHTTP单元(特别是如果您实际上没有使用TIdHTTP组件)不可能导致这样的崩溃。肯定还有其他事情发生,删除 IdHTTP 单元只是一个巧合。您将必须单步执行应用程序的关闭代码才能查看到底发生了什么。
Indy is completely separate from ADO. There is no way the mere presence of the IdHTTP unit in the uses clause (especially if you are not actually using the TIdHTTP component) can cause such a crash. Something else has to be happening, and removing the IdHTTP unit is just a coincidence. You are going to have to step through the app's shutdown code to see what is really happening.
现在这可能是旧消息了,但我遇到了完全相同的问题,但在重新安装后忘记安装 Update Pack 4。这样做就解决了问题。
This is probably old news now but I had exactly the same issue but had neglected to install Update Pack 4 after a reinstallation. Do so cured the problem.