Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2006, 11:28 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Memory Leak in Crystal Report VS .NET

Hi,

I am designing reports using VB.NET and the Crystal Report .NET on Microsoft Visual Studio .NET 2003. The report will be viewed using CrytalReportViwer attached on the Windows Form. I will press one button called “Preview” every time I want to view the report.

The problem arise when I keep pressing the “Preview” button, the memory keep increasing, until certain stage, my PC hang! The problem will be much more crucial if I load large number of rows from database to the report dataset. I’m not sure whether my style of coding has brought this problem or it just a normal scenario (loading large scale of data). Furthermore the rows of data taken from the database are always thousands.

Below are my codes:

Public Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click

'Variable Declaration
Private rpt As ReportDocument
Private ds As New Dataset
Private tblName As DataTable

rpt = New RptCustomerList

'Execute Query
strSQL = "SELECT * from customer"

ODBCConnection1.Open()
ODBCDataAdapter1.SelectCommand.CommandText = strSQL
ODBCDataAdapter1.Fill(ds, tblName)
ODBCConnection1.Close()

'Load dataset to CrystalReport
rpt.SetDataSource(ds)

'Assign the report document to CrystalReportViwer
CrystalReportViwer1.ReportSource = rpt

End Sub


Is there anything not correct with the codes? Can anyone help me figure out how to solve this problem? Please.

Thanks in advance.



 
Old October 28th, 2007, 06:57 PM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

have you found a fix for this?
 
Old February 24th, 2010, 03:36 AM
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Have you receive solution?

I am also experiencing same problem after loading report with large volume of data.

please share your experience or solution you have got.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak in a loop neilsands Java Basics 4 March 17th, 2010 05:59 AM
Memory Leak Detector for VB.NET? mike1reynolds Pro Visual Basic 2005 0 June 30th, 2008 01:20 PM
IE Memory Leak Jman82 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 July 6th, 2006 05:22 PM
Memory Leak in ADO Seeja Pro VB Databases 1 December 27th, 2004 07:28 PM
Think I have a memory leak, need advice grantmeans Classic ASP Databases 1 March 12th, 2004 03:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.