Hi all,
As the subject says, serious troubles over here. I hope some of you can help
me out. I am using VB6, CR9, ADO 2.8 and SQL Server 2000.
I have an ActiveX DLL (VB6) which has a method that returns a Crystal
Reports Report (CRAXDRT.Report ). This main report consists of several
Subreportobject s. In this method, I open the recordsets and bind them each
subreport. Because the recordsets need to stay open, I put each recordset
object in a Collection.
Besides that, I have a normal VB6 project which contains a form with a
ReportViewer control on it. This application reffers to the ActiveX DLL and
uses it to generate the report which is binded to the CRViewer. The
generation works fine and the report is shown on the screen. But when I try
to close the application VB6 crashes and I get an Acces Violation at
0x00000004. Also when the application is compiled, it crashes the same way.
However when I run in full debug mode (including the DLL in debug mode),
everthing works fine, even closing the application without problems.
Has anyone experienced this problem or do you have suggestions? If
necessary, I post my code in this thread, just ask for it.
Best regards,
Gerry
As the subject says, serious troubles over here. I hope some of you can help
me out. I am using VB6, CR9, ADO 2.8 and SQL Server 2000.
I have an ActiveX DLL (VB6) which has a method that returns a Crystal
Reports Report (CRAXDRT.Report ). This main report consists of several
Subreportobject s. In this method, I open the recordsets and bind them each
subreport. Because the recordsets need to stay open, I put each recordset
object in a Collection.
Besides that, I have a normal VB6 project which contains a form with a
ReportViewer control on it. This application reffers to the ActiveX DLL and
uses it to generate the report which is binded to the CRViewer. The
generation works fine and the report is shown on the screen. But when I try
to close the application VB6 crashes and I get an Acces Violation at
0x00000004. Also when the application is compiled, it crashes the same way.
However when I run in full debug mode (including the DLL in debug mode),
everthing works fine, even closing the application without problems.
Has anyone experienced this problem or do you have suggestions? If
necessary, I post my code in this thread, just ask for it.
Best regards,
Gerry
Comment