Print Page | Close Window

why 'Thread is being aborted'

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4182
Printed Date: 19 Apr 2024 at 1:47pm


Topic: why 'Thread is being aborted'
Posted By: debadatta
Subject: why 'Thread is being aborted'
Date Posted: 07 Sep 2008 at 11:22pm
Hi I use crystal report 11 which is integrated into asp.net2.0 web page.
 
the report use 3 very large views from oracle and contains 3 subreports.
 
It generates around 600 pages of report data. some times while exporting the report to PDF i get "The thread is being aborted" .
 
For ur information it takes around 8 minutes to generate the report. and my session time out is way beyond this limit which is more then half an hour. The size of the report in PDF is around 700 kb.
 
i have hundreds of other reports using the same report viewer page but none of them show such anomaly.
 
Here is the code  :-
------------------------------------------------------

MemoryStream ostream = new MemoryStream();

ostream = (MemoryStream)rptDoc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

Response.Clear();

Response.Buffer = true;

Response.ContentType = "application/pdf";

Response.BinaryWrite(ostream.ToArray());

ostream.Close();

ostream.Dispose();

GC.Collect();

Response.End();

--------------------------------------
 
what is the reason ? Any help is appreciated.
 
Thanks & Regards...
Deb


-------------
dev(1)



Replies:
Posted By: hilfy
Date Posted: 09 Sep 2008 at 3:59pm
How much disk space is available on the C drive on the web server where this is running?  Crystal does a LOT of swapping stuff to the hard drive when it processes large reports and even more when it's exporting large reports.
 
Do a search for "~*.*" on the C drive of the web server.  You're specifically looking for files with .tmp, .rpt, and .pdf extensions.  Delete all of them that you find.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window