Results 1 to 14 of 14

Thread: VB6 and Crystal Reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    VB6 and Crystal Reports

    I am utilizing VB6.0 and Crystal Reports 9.
    I have several external reports which I call from VB. On some reports when I run only that report and then exit the application I receive the following error:

    The instruction at "0x760817db" referenced memory at "0x760817db". The memory could not be "read". Click OK to terminate the program.

    I am closing out each report call exactly the same way, and I make sure that the objects are set to nothing when I exit. This only happens on some reports and does not happen if I run more than one report when the application is open.

    Any ideas?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 and Crystal Reports

    Welcome to the forums.

    Does it always happen to the exact same reports?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    Yes, always the same reports. But if I run the same report twice in a row without leaving the application the problem does NOT occur.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 and Crystal Reports

    Are these reports being run locally or off of a network file server?

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    Locally

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 and Crystal Reports

    Quote Originally Posted by vlogan
    Locally
    Is this the only machine that runs this application with the reports? Have you tried it on others?

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    On all machines except my main development box.

    I have also copied the application to another development box and the compiled version of the code exhibits the same problem, but in the IDE of VB6 the application does NOT fail.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 and Crystal Reports

    I know this is going to sound like an odd question, but do these reports have really long names?

    I ask this because, since I am at a loss as to what to do next, I Googled your error message, and I found this page on MSDN Support what states this error can occur if you are attempting to programmatically reach a web site with a really long name.

    I know this is Crystal related, but it did state that the problem occurs with XP so I thought I would grasp at the straw.

  9. #9

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    The average file name is only 8 characters (i.e., crTDBD.rpt).

    I just checked and I am running with the latest Crystal Reports updates on my systems.

    This is one of those more annoying than catastrophic problems....

    I keep thinking that I have a memory leak issue, but the error message seems to indicate otherwise.

    Thanks for all of your help.....

  10. #10

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    I just found another person who has had the same problem back in Feb 2005. I emailed him to see if he found a solution.


    http://www.codecomments.com/archive3...-2-404643.html

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 and Crystal Reports

    Quote Originally Posted by vlogan
    I just found another person who has had the same problem back in Feb 2005. I emailed him to see if he found a solution.


    http://www.codecomments.com/archive3...-2-404643.html
    This is a very odd problem so if you do arrive at a solution, please post it in the event others face a similiar situation.

  12. #12

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    Unfortunately the gentleman I emailed has not responded, so this remains an open issue. In the event I find the solution I will certainly post it.

    Thanks for all of your help, past and future....

    Verne

  13. #13

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Location
    Des Moines, IOWA
    Posts
    10

    Re: VB6 and Crystal Reports

    My contact in England got back with me...He said they never found a solution to the problem, and are now developing in C#.

    Since the problem is not catastrophic to us I will probably just live with it until we also "upgrade" to C# or VB.NET.

    Thanks everyone.....

  14. #14
    New Member
    Join Date
    Jan 2006
    Posts
    1

    Re: VB6 and Crystal Reports Solution

    Hi VB6 Fans. I'm currently using Visual Basic 6.0 (sp6) and Crystal Reports v9. Just a while ago I was suffering the same issue with my report form (the one with the viewer9 control). It showed the report perfectly for the first time, but it just crashed every time I tried to show the report (any report)for the second time. The fix for this is to install the Crystal Reports 9 Service Pack 6: Download the SP6 for Crystal Reports 9 Here

    It worked for me.

    Best Regards,

    The Chad.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width