469,592 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Crashing VB6

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
Subreportobjects. 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
Jul 17 '05 #1
1 2846
"Gerry Laenen" <ba******@mail.be> wrote in message news:<40**********************@news.skynet.be>...
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
Subreportobjects. 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


Have you implemented any error handling in your modules?

David
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Yannick Majoros | last post: by
reply views Thread by Henry Hank | last post: by
14 posts views Thread by Java and Swing | last post: by
7 posts views Thread by Jeffrey Barrett | last post: by
reply views Thread by Grant | last post: by
8 posts views Thread by code break | last post: by
5 posts views Thread by news.cyberlink.ch | last post: by
2 posts views Thread by =?Utf-8?B?QW5uZXh4eHh4eHg=?= | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.