开发者

Application vanishes when trying to invoke an OLEDB provider with VB6 Form

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, s开发者_如何学运维ame issue. I see two errors in the Windows Event Log

* Error 1

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

*Error 2 *

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:\MYApp\MyApp\bin\x86\Debug\MyApplication.exe Faulting module path: unknown Report Id: d351c329-e523-11e0-a2de-0023240631a8

Any Pointers to Fix this issue is highly Appreciated.

thanks


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜