将数据源分配给crystal report对象时,应用程序崩溃。 [英] Application is crashing while assigning datasource to crystal report object.

查看:63
本文介绍了将数据源分配给crystal report对象时,应用程序崩溃。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,

I am developing an application which is using Crystal report for reporting. Application is running fine until I didn't open 2nd crystal report. TO be precise, I can see first crystal report but while opening second crystal report in application it is crashing. I use the try catch for tracing error but it is not working.

It is windows application 
I am running it on windows 10 64bit version
Target .net framework is 4.0

Below are the details of the windows event logs.





来源:应用程序错误



Source: Application Error

Faulting application name: GST Snehdeep.vshost.exe, version: 10.0.30319.1, time stamp: 0x4ba2084b
Faulting module name: cslibu-3-0.dll, version: 13.0.0.99, time stamp: 0x4cc40842
Exception code: 0xc0000005
Fault offset: 0x00039a08
Faulting process id: 0x2ef8
Faulting application start time: 0x01d50c32c033fb91
Faulting application path: F:\GST Snehdeep\GST Snehdeep\bin\Release\GST Snehdeep.vshost.exe
Faulting module path: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cslibu-3-0.dll
Report Id: aa96b83c-7acd-4a56-ab6b-45cfdf660b19
Faulting package full name: 







资料来源:.Net Runtime






Source: .Net Runtime

Application: GST Snehdeep.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 13BC9A08





提前致谢....



我尝试了什么:



我试过安装了水晶报告运行时间和引擎。

试图安装.net framework 4.0但没有运气。得到错误已经安装....



Thanks in advance....

What I have tried:

I tried I have installed crystal report run time and engine.
Tried to install .net framework 4.0 but no luck. Getting error "Already installed ...."

推荐答案

它不工作是我们得到的最无用的问题描述之一:它完全没有告诉我们问题。我们不知道您是否收到错误消息,或者错误的数据,甚至该代码是否成功编译!

请记住,我们无法看到您的屏幕,访问您的硬盘或阅读您的记住 - 我们只能准确地输入您要输入的内容。所以将来告诉我们当你运行代码时会发生什么,你期望发生什么,你如何检查发生了什么。帮助我们帮助您!



这需要我们无需解决的信息:具体而言,它需要您的代码打开CR并将连接数据传递给它,以及您传递的数据 - 我们都没有访问过的数据。哎呀,我们甚至不知道你用什么语言写的!



所以,这取决于你。

幸运,你有一个工具可以帮助你找到正在发生的事情:调试器。你如何使用它取决于你的编译器系统,但是一个快速的谷歌用于你的IDE名称和调试器应该给你你需要的信息。



放一个断点在函数的第一行,并通过调试器运行代码。然后查看您的代码,并查看您的数据并找出手动应该发生的事情。然后单步执行每一行检查您预期发生的情况正是如此。如果不是,那就是当你遇到问题时,你可以回溯(或者再次运行并仔细观察)以找出原因。


对不起,但我们不能为你做到这一点 - 时间让你学习一门新的(非常非常有用的)技能:调试!
"It's not working" is one of the most useless problem descriptions we get: it tells us absolutely nothing about the problem. We don't know if you get an error message, or the wrong data, or even that that code compiles successfully!
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. So in future tell us what happens when you run that code, what you expected to happen, how you checked what happened. Help us to help you!

This needs information we don't have to solve: specifically, it needs your code to open CR and pass it the connection data, and the data you passed - neither of which we have any access to. Heck, we don't even know what language you wrote this in!

So, it's going to be up to you.
Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. How you use it depends on your compiler system, but a quick Google for the name of your IDE and "debugger" should give you the info you need.

Put a breakpoint on the first line in the function, and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.

Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!


这篇关于将数据源分配给crystal report对象时,应用程序崩溃。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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