SAP Knowledge Base Article - Public

1201418 - Windows Form application using Crystal Reports refuses to shut down

Symptom

In the Visual Studio hosting environment, on close of an Windows application that uses Crystal Reports the following error message appears:
 
"Title: Microsoft Visual C++ Runtime Library

Runtime Error!

Program: "\TestReport.vshost.exe

 

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application"s support team for more info."
 
Running the application from the application exe file, the program stays open appearing to be in a loop on shutdown.

Cause

The report uses crdb_xml.dll for connecting to an XML datasource.  This dll calls java.exe and uses it in the background.  As Visual Studio .NET can not elegantly close out the Java Virtual Machine the application either stops respnding or throws an error.
 

Resolution

Use the ADO.NET (XML) selection when designing reports that will connect to an XML datasource. This will then force the report to use the crdb_adoplus.dll which works as expected in the Visual Studio .NET environment.

Keywords

loop shut down shutdown runtime error net windows form terminate unusual crdb_xml.dll , 5431336 , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Bug Filed

Product

Crystal Reports 2008 V0