[DUG] Crystal Reports Crashing the App

Rohit Gupta r.gupta at xtra.co.nz
Thu Mar 29 10:42:00 NZST 2007


In our real app, the program crashes randomly (regularly for some users) 
at the instance that Crpe is used.  The app basically disappears which 
implies that substantial code and/or stack is corrupted.

In a smaller app that only opens the report to get some stats (it does 
not connect to the database), I can get it to crash in the same fashion 
predictably.

The sequence of events is open two copies of the app )or one copy of the 
app and the CRW designer)
Open any report in the first app (which always assignes ReportName to 
blank and does not destroy the crpe component
Open any report in the second app or CRW Designer
Open any report in the first app and its gone with no trace.

In real life the users can not run multiple copies, the app takes care 
of that.  However the symptoms are identical leading me to believe that 
if I can find the cause of the second crash, I can fix the first one.

Any clues anyone ? 

I cant find anything pertinent on google, except for one item where the 
author insists that the problem is a secret com object that crpe 
launches and if you wait for it to finish and terminate then there are 
no crashes.  However, delays dont have any effect on my test case.

In the debugger, if I keep doing F7, everything keeps working.  But as 
soon as I press F8 or F9, it gets an AV because it starts executing in 
hyperspace.



More information about the Delphi mailing list