我必须从 Winforms 应用程序中的水晶报告中使用 OLEDB 提供程序(用于 Sungard Investran).使用 .Net 4,用于 VS2010 的 Crystal Reports.OLEDB 提供程序有一个参数对话框,我相信它是在 VB6 中开发的.当我使用不带任何参数的查询调用此 OLEDB 提供程序时,它工作正常.但是当调用任何带有参数的查询时,整个应用程序就消失了.在 Windows XP 上一切正常,但在 Windows 7 中存在此问题.该应用程序仅针对 x86 平台编译.也尝试使用所有平台",同样的问题.我在 Windows 事件日志中看到两个错误
I have to use an OLEDB provider (for Sungard Investran) from my crystal reports in Winforms Application. Using .Net 4, Crystal Reports for VS2010. The OLEDB Provider has a Parameters Dialog, which I believe is developed in VB6. When I call this OLEDB provider with Queries without any Parameters, it works fine. But when calling any Query with Parameters, the entire application just vanishes. Everything Works fine on Windows XP but has this issue in Windows 7. The app is compiled for x86 platform only. Tries with "all platforms" too, same issue. I see two errors in the Windows Event Log
* 错误 1
应用程序:MyApplication.exe 框架版本:v4.0.30319说明:进程因未处理的异常而终止.异常信息:异常代码c0000005,异常地址071116C0
Application: MyApplication.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: exception code c0000005, exception address 071116C0
*错误 2 *
错误应用程序名称:MyApplication.exe,版本:1.1.2009.130,时间戳:0x4e7b4051 错误模块名称:未知,版本:0.0.0.0,时间戳:0x00000000 异常代码:0xc0000005 故障偏移量:0x071116c0 错误进程 id:0xa14 错误应用程序开始时间:0x01cc793091b8b5b0 错误应用程序路径:C:MYAppMyAppinx86DebugMyApplication.exe 错误模块路径:未知报告 ID:d351c329-e523-11e0-a2de-0023240631a8
Faulting application name: MyApplication.exe, version: 1.1.2009.130, time stamp: 0x4e7b4051 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x071116c0 Faulting process id: 0xa14 Faulting application start time: 0x01cc793091b8b5b0 Faulting application path: C:MYAppMyAppinx86DebugMyApplication.exe Faulting module path: unknown Report Id: d351c329-e523-11e0-a2de-0023240631a8
高度赞赏任何解决此问题的指针.
Any Pointers to Fix this issue is highly Appreciated.
谢谢
很难找到解决方案.我们需要在清单中设置 uiaccess=true.此 线程提供了指导.需要注意的是,这很烦人,因为这个解决方案有很多限制.但它虽然有效.欢迎来到 x64 的世界.
Found a solution hard way. We need to set uiaccess=true in the manifest. Guidance is provided on this thread. Caveat is that it is very annoying as there are lot of restrictions around this solution. But it works though. Welcome to the world of x64.
感谢所有对此问题感兴趣并试图为我找到解决方案的人.我很自豪能成为这个关心我们每个人的社区的一员.
Thank you all who showed interest in this issue and tried to find a solution for me. And I am proud to be part of this community who cares for each of us.
这篇关于尝试使用 VB6 表单调用 OLEDB 提供程序时应用程序消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!