?
Solved

CR9 & VFoxPro9 & VB6 Exclusive Connection problem

Posted on 2004-04-11
5
Medium Priority
?
395 Views
Last Modified: 2008-02-01
I have a Foxpro database called "Tesoreria". I'm making an Vb6 Application, but that application needs a report from a Tesoreria's temporary table (that's where Crysta Reports goes). I have created a Stored Procedure on VFoxPro to create that table, and another to delete that table (from database and from hard disk).

First I call that stored procedure from VisualBasic (using an Ado Connection object), after that I load the report. it works. the problem comes when i close the report and call the stored procedure to delet the table. I get an error when the instruction to delete the table is executed. It seems that the object CrViewer doesnt close the connection even when I destroy the object using "Set CrViewerObjectName = Nothing", even when i close the Form contining the CrviewerObject.

The detete procedure only works if I unload the Aplication and call the Stored Procedure to delete that table or after 16 minutes of waitting before execute the Delete procedure after unload the form with the Crviewer. The Store data with repot propierty is disabeled on my CR9 file.

Is any way to delete that table from database and hard disk just after the Cristal Report file unloads?

I can sent the source code of the vb form that loads the Crystal Report file, the stored procedure on FoxPro. Please help me!
0
Comment
Question by:camilosalgado
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 10803003
Crystal has a bad habit of maintaining the database connection even after the report is closed.  I thought this was supposed to be fixed in CR9.

Have you loaded any of the CR9 hotfixes?

mlmcc
0
 

Author Comment

by:camilosalgado
ID: 10806228
thnkz for the comment, but I have already tryed to install the lastestservice pack and nothing happened.
Is there any way to force the disconection?
Is there a way to kill or to eliminate (pool or) pending connections to close, or objects or dll's from vb6 or foxpro (in case of pending connections)?. You know like java has the object cleaner for unused objects or objects without any reference.

0
 
LVL 101

Accepted Solution

by:
mlmcc earned 1000 total points
ID: 10809643
Nothing I am aware of.

mlmcc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question