Crashing VB6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gerry Laenen

    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
    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


  • David

    #2
    Re: Crashing VB6

    "Gerry Laenen" <bademail@mail. be> wrote in message news:<40d2b308$ 0$9750$a0ced6e1 @news.skynet.be >...[color=blue]
    > 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[/color]

    Have you implemented any error handling in your modules?

    David

    Comment

    Working...