Crystalreports .setdatasource crashes VSHOST.exe and program stops execution

  • Thread starter Thread starter AhmyAM
  • Start date Start date
A

AhmyAM

Guest
Hi there, I am having a problem with the following code


"s.SetDataSource(rs.students(comboBox1.Text));" the function returns a data set and s is the name of the crystal report report.


It runs fine the first time but if it is called the second time ( wheter comboBox1.text changes or not) it crashes. VShost.exe is crashed.


here is the problem signature.


Problem signature:
Problem Event Name: APPCRASH
Application Name: CrystalReportsHomeWork.vshost.exe
Application Version: 10.0.30319.1
Application Timestamp: 4ba2084b
Fault Module Name: cslibu-3-0.dll
Fault Module Version: 13.0.1.220
Fault Module Timestamp: 4d6fe1eb
Exception Code: c0000005
Exception Offset: 000074d0
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 1a4e
Additional Information 2: 1a4e82254bf84b5bfc151b15d95de776
Additional Information 3: 9586
Additional Information 4: 9586c9e7703640fda2f0068f2961dae8

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\windows\system32\en-US\erofflps.txt





P.S : If I set the datasource to an empty dataset/datatable and then set the datasource to the actual dataset/datatable , it works fine just then!

Continue reading...
 

Similar threads

Back
Top