Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: why 'Thread is being aborted' Post Reply Post New Topic
Author Message
debadatta
Newbie
Newbie
Avatar

Joined: 15 Mar 2008
Location: India
Online Status: Offline
Posts: 3
Quote debadatta Replybullet Topic: why 'Thread is being aborted'
    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)
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet 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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.