Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Active Data and ODBC Sources in Crystal 9

Status
Not open for further replies.

asundaram

Programmer
May 10, 2004
3
US
Hi,
I've written a report that uses both Active Data (.ttx file) as well as ODBC source to produce a report using Crystal 9 through my VB.NET Application. The report is generated fine, but when i close out of my application, the application continues to hang (the process doesn't quit). This only occurs in Oracle (works fine in Sybase) and in VB.NET (works fine using Crystal 8 in VB). Again the report runs fine, but it causes the application's process to hang. I contacted Crystal, they said they don't support using both Active Data as well as ODBC sources in the same report. However i've been doing this for years in Crystal 8 and 8.5 and it runs fine in Crystal 9 in Sybase and Oracle, but it just causes the process to hang in Oracle. Any ideas as to why this might be happening?
Thanks.
 
Yes, it looks like something similar is happening. If i check the connections to the Oracle database, there is one connection when i start my application. Then a second one appears when i run the report. however, when i close out of my application, the application's Oracle connection disappears, but the Report's Oracle connection lingers.
This only happens when using the Oracle ODBC driver for some reason. How do i call Disconnect?
Thanks.
 
The problem is the report's independent connection. This gets created when the following code is executed:

CRAXDRT.DatabaseTable.SetLogOnInfo()
CRAXDRT.DatabaseTable.Location()

So how do i explicitly release the connection to this DatabaseTable?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top