Memory Leak in Crystal Report XI

We are using Crystal Reports XI Licensed Developer version for web based application. The generated reports are getting accessed by multiple users from web interface. After continuos access of reports, at some point it reaches the maximum limit of Application pool and it stops the application.
From number of web forms, we found that crystal reports are not releasing systems memory and it keeps adding extra load on memory after a single report generation or there is memory leak. Below are the code snippets to initialize and dispose of report object.
a. Initializing a new report obj
protected ReportDocument _selectedRpt = new ReportDocument();
b. Disposing obj in page_unload event
/// <summary>
/// Page_Unload Event handler.
/// </summary>
/// <param name="sender">Sending control or event.</param>
/// <param name="e">Generic event arguments.</param>
protected void Page_Unload(object sender, EventArgs e)
     _selectedRpt.Close();
     _selectedRpt.Dispose();
Temporary Solution:  For its temporary resolution, we are recycling application pool twice a day for smooth processing of reports, but recycling also destroying application session.
Please suggest a solution, which can help to run crystal reports correctly without any memory leak.

Helena, CR XI R2 is not supported in .NET 2008. See [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/WhichCrystalReportsassemblyversionsaresupportedinwhichversionsofVisualStudio+.NET] wiki for more details.
Re. your unanswered post. Can you provide a link? I search for unanswered posts, but do not see one from you.
Remember that this is a community forum only, not support as such. If this is an important issue and you wish to discuss it with technical support, you can create a phone case here:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
Ludek

Similar Messages

  • Memory leak in Crystal Reports 2008

    We are running CR runtime 2008 version 12.3.4 and it looks like there is a memory leak. This is what we see happen (see chart#1). So just between these 4 report runs memory usage as gone up 64mb. We loose 20mb of memory with each report that we call. We actually see memory keep going up until the application fails due to out of memory issues around 1100mb of memory usage. This has been an issue ever since crystal 2008 was released we did not see this issue with Crystal Reports 11 or 10.
    chart#1:
    memory using in MB after opening and closing a small CR
    Start 123
    open rpt 225
    close rpt 204
    open rpt 245
    close rpt 226
    open rpt 266
    close rpt 247
    open rpt 287
    close rpt 268
    When is SAP going to address this issue?  Our work around for the last 2 years has been to close the CR application and reopen it multiple times a day to free up this lost memory and to revent "Out of memory" errors.  We will be forced to move to Reporting Services if this issue is not addressed soon.
    Josh

    Hi Josh,
    There are no memory leaks in CR 10, 11, 2008 or 2010 or 2011.
    Make sure you are closing and disposing all of your report objects, database connections, Data Sets etc. And then calling GC.Collect.
    And if you want to pursue this I suggest you give more details than just saying there is a leak and show a bunch of numbers that mean nothing without the code to verify those numbers.
    Thank you
    Don

  • Out of Memory issue in crystal report 2008 SP1

    Hi ALL,
    I am facing serious issue in crystal report 2008 SP1.
    When i am click the page setup in crystal report 2008 ,it is prompting like "Out of Memory".
    Because  of this i am not able to see the default printer in the page setup.
    Please give the suggestions to resolve this issue.
    Thanks and Regards,
    Vinay

    Hi Ed,
    What printer are you using as your default printer?
    What happens if you change your default printer to Microsofts generic print driver? Only as a test to remove the printer being the cause.
    Also, Go into Page Setup and check on Dissociate Printer..... and see if that fixes the issue.
    Also, include all your OS version and patch level, Status of DEP, anti-virus turned off ( disconnect from your network while doing this test ) and Windows Firewall or any third party firewall and close all other software running.
    Thanks again
    Don

  • Crystal report 9 memory error.

    we are using crystal report 9 with sybase power builder..... at some client locations we are experiencing the application crash due to memory while opening crystal reports.
    the following errors were noticed
    1.the instruction at "0x77124804" referenced memory at "0x001b3e60". the memory could not be read.
    2.the instruction at "0x7c911daf" referenced memory at "0x00000000". the memory could not be read.
    please guide us what is the issue.. do we need any hotfix or service pack for this.
    regards

    I assume you already tried to reinstall the application and I would recommend to do it one more time, but this time follow the process for so-called manual uninstall
    1. Uninstall Crystal reports 9 using add remove programs
    2. Save backup -up of the Registry
    3. Remove the following registry key (be careful with the registry file):
    HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports
    4. Reinstall Crystal Reports 9
    As the next step I would check and disable Data Execution Prevention.
    Go to: Start> Right-click My Computer" select Properties> Advanced tab > click Performance settings> Data Execution Prevention tab.
    If DEP turned on for all programs, then add Crystal Reports (crw32.exe) to except list.
    If DEP is not cause of problems, then I would suggest Process Monitor to locate the reason or at least try to locate it.
    You can download Process Monitor utility from the following page:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    The same page will tell you how to use it. I would suggest the following steps:
    Close all unnecessary applications/processes
    1. Open Crystal Reports
    2. Start the Process Monitor, stop capturing events (Cntrl-E), clean the display (Cntrl-X), add the following filter (Cntrl-L) "Process Name is crw32.exe then include", click ok.
    3. Start capturing events (Cntrl-E)
    4. Immediately click Format menu on Crystal Reports
    5. Stop capturing events and save the log file
    Now you can look at the log file to see what is going wrong. I would also advice to capture the same log on client machine to compare the sequence of events.
    Gracias...!!

  • How to overcome the Memory leakage issue in crystal report 2008 SP2 setup.

    I have developed the small windows based application tool with help of  Visual studio 2008 for identify the memory consumption of crystal report object. It helps to load the crystal report objects in the memory and then released the object from the memory. The tool simply does the u201CLoading and Unloadingu201D the objects in the memory.
    The tool will be started once u201CTest_MemoryConsumption.Exeu201D executed. The u201CTest_MemoryConsumption.Exeu201D consumes u201C9768 KBu201D memory before load the crystal report object in memory. It means, 9768 KB is normal memory consumption for run the tool.
    Crystal report object initiated by the tool and object help to load the report in memory once the tool initiated the crystal report object. Now u201CTest_MemoryConsumption.Exeu201D consumes u201C34980 KBu201D memory during the crystal report object creation and report load process. The actual memory consumption of crystal report object is 34980u20139768=u201C25212u201DKBu201D. 
    The memory consumption u201C34980 KBu201D will be continued till the end of the process. The memory consumption will be reduced to u201C34652 KBu201D from u201C34980 KBu201D once report load process completed. It means, u201C328 KBu201D memory only released from the memory consumption. Tool enables the Release command for the crystal report object. But crystal report object does not respond to the command and will not release his memory consumption.
    The memory consumption u201C34652 KBu201D will be stayed in the memory once job ends.  If i again initiate the crystal report object then it crystal report object start to consume the memory from 34652 KB.
    Database objects and crystal report objects are properly used in the tool. The object release commands properly  communicated to crystal report setup. But the u201CCrystal report service pack 2u201D setup unable to respond the commands which has enabled from .Net Tool.  Crystal report objects are properly initiated and disposed in the tool. But the crystal report unable to release from the server.
    The memory consumption will be reduced once the server restarted or kill the application.
    Crystal report 2008 and crystal report 2008 SP2 setup available in the server.
    Microsoft .Net Framework 2.0 SP2, Microsoft .Net Framework 3.0 SP2 and Microsoft .Net Framework 3.5 SP1 are available in the server,
    Could you please suggesst how to avoid the memory consumption keep increasing and  how to release the memory consumption  once the crystal object disposed???

    Hi Don..
    My case is different one. I hope, the problem with Run time Installation setup file (Crystal report 2008 Serivce Pack2 installer) which we installed in the server.
    Let me explain with Live scenario which our client faced in crystal report 2008 Service pack2 Installer.
    Our client is using a application to help to print their reports. The application is developed with Windows service.
    Windows service keep on running in the server. Windows service executes the client 's crystal reports( Labels Report, Stock  report) which designed for clients need and the reports will be printed from printer. 
    10 Same type report (Label Report) will be printed in 1 minute. Reports are not printing during non business hours. But the windows service keep on running.  Memory cosumption of application will be 160 MB in business hours.
    For Example, On Monday the application memory consumption starts with 160 MB. The Memory consumption will be reached 165 MB  in peak business hours. Then the memory will be ended in163 MB in the End of Monday. It means, The memory consumption will be in 163 MB during the non business hours. Reports will not be printed in non business hours.
    On Tuesday, the application memory consumption starts with 163 MB and it will be reached 168 MB during the peak hours. The Memory consumption will be ended in 165 MB in the end of Tuesday.  The same process contiues till friday. End of friday, the memory consumption of the application will be ended with 170 MB.
    Application Memory Consumption slowly increasing in the server. In 5 days, Memory consumption reached Threshold value (170 MB) of the server. Application gets hanged up once the memory consumption reached 170 MB. We got the error messages as "Attempted to read write protected memory " / "Not Enough memory for process".  If we restart server / If we restart the service then memory consumption of application get reduced to 160 MB.
    From the above scenario, We came know that the either the problem with Application object or the problem crystal report object. In the application, We have checked dispose methods of application objects completly. I am sure that  application objects are properly disposed in the application. I hope the problem not with application objects. The problem with Crystal report objects.
    Application properly communicates the dispose methods to crystal report objects. Crystal report objects are not released from
    the memory.
    Crystal report 2008 Serive Pack 2 setup installed in the server. 
    As you said, If Crystal report runtime is not released from memory then memory consumption keep increase???  In service oriented architecture application, how to unload the crystal report runtime??
    Do you any fix for this kind of issue??
    Willl Crystal report 2008 service pack 3 help on this issue??

  • Crystal report viewer stop grouping (sorting) when there is a lot of data

    Hi,
    Here is my problem, when I try to view a report that uses grouping and sorting on the Crystal Report Viewer (web), if the query returns more then 490 records then all the groups are screwed up. Basically all the records are in the report but they are not in the proper groups and they are not sorted. It seams like it's running out of memory and just gives up.
    The same report works fine in the Crystal Reports 2008 designer tool.
    Is there a way to increase the memory of the Crystal Report Viewer (web) or is there something else I can do about that?
    Thanks

    I installed the Crystal Report plug-in on my Eclipse and I ran my report in it. Then I got this error:
    Original Order Grouping: Modifying groups with original order grouping is not fully supported.
    Change all groups with 'Sort property to a value other than 'Original Order', or modify the report grouping in the Crystal Report designer application.
    So I modified my report to remove the "Original Order ".
    That seam to fix the problem, I havenu2019t been able to reproduce it since.
    Thanks
    /Yannick

  • Teststand 3.5 Memory Leak Strategies

    I am experiencing a memory leak when running my test seqeunce using TestStand 3.5.  I have read several messages and Knowledgebase entries to try and collect intelligent memory leak strategies.  I have been running Perfmon on my Windows XP PXI controller card to collect data on the Private Bytes for the process SeqEdit.  This shows a memory increase with each test cycle of over 500 KBytes.  I am trying to reduce my huge test sequence file down to determine where the leaks are occuring, but have the following questions in order to more fully understand TestStand memory issues:
    1) I understand each individual step in a sequence can record results if not disabled.  So, if there are thousands of individual steps this could take up quite a lot of memory.  Does TestStand allocate new memory for these step results, or do the results get stored into memory already allocated for TestStand when it is invoked?  By the way, I debug the memory leak issues with reporting disabled.
    2) If the step results are stored in newly allocated memory, at what point does TestStand free up the additional memory it allocated for the step results?  Is it inside the process model?
    3) Is there a way in the sequence editor to turn off Record Results for multiple steps at once, or must they all be turned off individually (soooo time consuming!).
    4) If memory is newly allocated, is there a step I can execute to force memory to be freed up?
    Ideally, I should be able to start at a certain memory level, execute one test cycle (which has many memory allocations and de-allocations), and at the start of the second test cycle be at the same memory level that was present at the start of the first test cycle.  I actually focus my attention on the second test cycle vs. the third, fourth, ... since the first test cycle can load DLLs for the first time and will affect memory size.
    Any information on the above questions will be greatly appreciated.
    Ron

    Ron,
    What I meant by "default" was just when report generation is turned on and On-The-Fly Reporting is off. The memory used by the results array is released once the scope of the results is lost. In other words, when your sequence is done and ends, the memory is freed. When you use Test UUTs instead of Single Pass, the memory is not freed until the testing is "stopped" instead of choosing to test the next UUT. This does not mean that more and more memory is used for each pass. If you look at the process model for Test UUTs entry point, there are a few steps that clear the results container. That means the memory is still allocated, it just gets cleared and replaced with the new results.
    You keep referring to this as a "memory leak" when it actually is more along the lines of just getting more and more values to be stored into memory instead of a "leak." Something you might check to see is if you are storing numbers in huge arrays, which will also take large chunks of memory. You shouldn't be seeing a memory problem with just a couple thousand steps. I have seen sequence files with over 10,000 steps run before. One other thing you might consider is if you use On-The-Fly Reporting, you will see a slow of execution time.

  • Memory Leak in Report after upgrading from Crystal Reports 10.5 to 13.0.1/2

    I'm currently having an issue with crystal reports 13 (Visual Studio 2010), We have recently updated our CRM Solution to use the newer crystal reports runtime as we are now using Visual Studio 2010,
    We have a client who has a report which contains a sub report which basically contains a Image pulled from a MSSQL Database as a BLOB Image Field which is basically scanned images relating to the report, Previously the report worked fine before the Client Updated our CRM Solution to the latest version, Now for each individual page which has the scanned image the application is swallowing 100 MB of ram, as there are around 32 of these scanned images and our solution is a 32 bit application we are getting out of memory errors due to the whole 2GB addressable to a 32 bit process limitation,
    The images are around 4MP and stored in JPG format in the database so should not be consuming over 100mb of ram per image displayed by the report even if they are being stored uncompressed in RGBA Format,
    Likewise when viewing the pages of the report manually after a specific page (when the amount of memory addressable by a 32 bit application gets hit) the images just don't display and then any pages with the image are not being displayed and not giving an error / exception.
    I have tried re-saving the .rpt files to cause them to be in the newer crystal reports format and this is still happening, likewise I have tried un-installing the 13.0.1 and installing the 13.0.2 runtime.
    I am just about to check SQL which pulls the image for the sub report, although I am sure for each sub report it should only be pulling one row with one jpeg image in case the sub report is holding quite a few images but only displaying the first.
    Likewise If all else fails I will try re-creating the report as I have experienced issues with some other specific reports doing strange things after being updated from the 2008 runtime which I really am not liking the idea of due to how fiddly crystal reports can be, It is good and does the job but takes far longer than some other solutions to get what you are trying to achieve done.
    This report had been working fine for 2+ years before the client updated to the most recent version of our CRM Software.
    Has anyone else experienced simular issues with the latest runtime.

    I have just been reviewing the code for this and it appears that the sub report is pulling all of the images,
    It is strange that previously this was working fine seems like the newer runtime does not dispose of the data once it has been displayed on a sub report which would explain memory leak as it will call the select again pulling approx 60 images which are probably approx 8 - 900KB plus sub report + uncompressed image to display and then filtering.
    I am about to modify this report and will post if fix i put in place resolves the issue.

  • Crystal Reports 2008 - Report Load error - Memory Leak Error?

    Hello
    <br>
    We have a problem with Crystal Reports 2008 with .NET 2.0.
    <br>
    CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    <br>
    The problem is that during high amount of report producing, errors in eventlog pops up and the production of reports using <br>
    Crystal Reports stops.
    <br>
    Below are examples of the three most common event logs.
    <br>
    We have tried to implement a cleanup method both as a destructor (with a global ReportDocument rdoc variable) and using direct call to cleanUpDoc() method when finished with loading doc:
    <br>
    ~IOServerClass()
    <br>
    <br>
                cleanupDoc();
    <br>
    <br>
    <br>
            private void cleanupDoc()
    <br>
    <br>
                try
    <br>
    <br>
                    if (rdoc != null)
    <br>
    <br>
                        rdoc.Close();
    <br>
                        rdoc.Dispose();
    <br>
                        rdoc = null;
    <br>
    <br>
                    this.CleanGlobalEvents();
    <br>
                    System.GC.Collect();
    <br>
    <br>
    <br>
    <br>
    The doc is loading using the "normal" method (in-process).
    <br>
    <br>
    try
    <br>
    <br>
                        rdoc = new ReportDocument();
    <br>
                        rdoc.Load(fullpathandreport); 
    <br>
    <br>
                   catch (Exception ex)
    <br>
    <br>
                    cleanupDoc();
    <br>
    <br>
    ...process doc....
    <br>
    cleanupDoc();
    <br>
    <br>
    Furthermore we have tried during Scalable tests of the system - but cannot produce the below errors ourselves. Only the customer can.
    <br>
    Please help with solving this problem.
    Is the above advisable to do?
    Should the document be loaded in another way?
    Is it a memory leak?
    <br>
    Regards
    Kristian
    <br>
    <br>
    event logs:
    <br>
    <br>
    #1
    <br>
    <br>
    Event Type:     Error
    Event Category:     None
    Event ID:     1102
    Date:          12-02-2010
    Time:          10:22:05
    User:          N/A
    Description:
    IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
    Loading reportfile=C:\Inetpub\wwwroot\xxx\Reports\321.rpt
    Source=CrystalDecisions.CrystalReports.Engine
    Message=Load report failed.
    Stacktrace=   at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,
    OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at xxx.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
    WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep,
    Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\Projects\xxx.IOServer2\IOServerClassClassic.cs:line 290
    InnerSource:Analysis Server
    InnerMes:
    Error in File 321 {19463E3B-D404-45EB-88AE-5722A7FF9E90}.rpt:
    The request could not be submitted for background processing.
    InnerStack:
       at
    CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
    DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
    DocumentPath, Int32 Options)
       at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    <br>
    <br>
    #2
    <br>
    <br>
    IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
    Loading reportfile=C:\Inetpub\wwwroot\xxx\Reports\321.rpt
    Source=CrystalDecisions.CrystalReports.Engine
    Message=Creating an instance of the COM
    component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} from the IClassFactory failed
    due to the following error: 8007000e.
    Stacktrace=   at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
       at Kimik.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
    WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep, Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\Projects\xxx.IOServer2\IOServerClassClassic.cs:line 289
    <br>
    #3
    <br>
    <br>
    IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
    Loading reportfile=C:\Inetpub\wwwroot\xxx\reports\340.rpt
    Source=CrystalDecisions.CrystalReports.Engine
    Message=Load report failed.
    Stacktrace=   at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,
    OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at Kimik.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
    WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep,
    Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008
    \Projects\xxx.IOServer2\IOServerClassClassic.cs:line 290
    InnerSource:CrystalDecisions.ReportAppServer.ClientDoc
    InnerMes:
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    InnerStack:
    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
    DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
    DocumentPath, Int32 Options)
       at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    Edited by: kristians on Feb 16, 2010 2:57 PM

    Hi;
    First, ensure you have the latest service pack / hot fix for your version of Crystal Reports, and that the client has the same updates as well. Fix Pack 2.4 is the current latest, and can be downloaded from our downloads section.
    One of the errors is the Background Processing error, so have a look at the following article:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33&overridelayout=true
    Regards,
    Jonathan
    Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup

  • Crystal report XI makeas memory leaking

    Hi all:
    My application use vs2003/COM+ with independ crystal report XI and it has a serious memory leaking issue. After I generated the report, the memory grew twice and then soon the application is crashed after it is up to the maximum memory.Microsoft helped me to look at the dump user file and their concusion is that the Crystal report was build with Debug mode and not release mode. I never heard it before since I only add module to my deployment project and never know it has debug and release module version. So Can I please get help and how can I get the release crystal report module?
    copid from the Microsft reply email:
    Hello Helena,
    Your custom modules are built in Release mode as per the configuration settings in Visual Studio, however, all the dlls that are built in Debug mode are listed below:-
    crystaldecisions.reportappserver.commlayer.dll built debug
    crystaldecisions.reportappserver.clientdoc.dll built debug
    crystaldecisions.reportappserver.cubedefmodel.dll built debug
    crystaldecisions.reportappserver.controllers.dll built debug
    crystaldecisions.reportappserver.datadefmodel.dll built debug
    crystaldecisions.reportappserver.reportdefmodel.dll built debug
    crystaldecisions.keycode.dll built debug
    crdb_adoplus.dll built debug
    the crystaldecisions.crystalreports.engine.dll  version is 11.5.3300.0
    Thanks
    Helena

    You can not. The memory will never go down to zero - at least not as long as the app is running. There is a number of files, assemblies, etc. held in memory by the framework until the app is shut down. This behaviour is by design, and is actually quite important. First with an application more then one report can be loaded at one time, so the underlying dlls couldn't be unloaded until all reports for that application were closed. If we behaved this way, everytime a new report was opened we would need to load all our core dlls, search for optional dlls and read all the registry keys over again. This would be a performance hit in the speed of the report being viewed and on the entire system. By leaving our core engine open after the report is closed there is no longer this bottle neck, and really if we changed this we would get lots of complaints.
    Now in general this is not that big of an issue for Windows applications as it is usually one user on a system at a time and 40 MB for a user is not much. For web applications I can see this as a potential issue, however if you are having 100 users at a single time running reports from your web application I might suggest that Crystal Reports may not be the best solution for you. I suggest you look at Business Objects Enterprise where you can offload the report generation from your Web App server to the Enterprise server to see if this would benefit you.
    A memory leak would be if you see this number increasing for ever - unitl you run out of memory and the mchine become unresponsive.

  • Memory Leaks in CRPE32.dll of Crystal report 8.5

    Post Author: Pugalendran P
    CA Forum: Crystal Reports
    Hi,
    On calling the PEOpenPrintEngine() API function of the Crystal report 8.5, the CRPE32.dll leaks memory of 2-3 kb. After printing 10000 reports approximately on a Server, the memory of the server was fully consumed and throws an exception stating "Unable to get current formula '' contents, Not enough memory for operation.".
    There are also other errors stating like "not enough memory for operation".
    Is there any resolution / hotfix / patch available to resolve this problem?
    If resolution / hotfix / patch is not available in Crystal report 8.5, will upgrading to Crystal Reports XI resolve this problem?
    Thanks in Advance,

    Hi all, Memory leaks are not usually an issue with CR and any that were reported have been plugged in 8.5. Most, using third party tools, are linked to some core MS dll's, printer drivers etc.
    And more commonly due to not releasing the report object, database connections, Printer DEVMODE's structure and other memory allocations you may have created in your application and not cleaned up when the report object is closed and disposed of.
    As for the life cycle this has been posted on our support site for quite a few years now, with the new Support site this link is not currently available but Google does have a cached copy of this from this link:
    http://209.85.173.104/search?q=cache:DkU35JxW5HsJ:support.businessobjects.com/programs_and_lifecycle/lifecycle/product_eol_dates.aspbusinessobjectslifecycle;hl=en&ct=clnk&cd=2&gl=ca
    Thank you
    Don

  • Crystal Report Basic for VS 2008 Memory Leak

    Hi,
    I am having a problem with CR Basic for VS 2008.  I can display a report, which I have linked to an DataSet in C#, but when I close the window, I seem to have a memory leak, as verified by process explorer.
    I am doing the following when the report window is closing:
    myReportViewer.ReportSource = null;
    myReportViewer.Dispose();
    myReportObject.Close();
    myReportObject.Dispose();
    GC.Collect();
    Any ideas?  I have a significant report that is generated and the memory leak is quite significant.
    Thanks,
    Dave

    The memory management you are seeing is an artifact of how the framework manages memory allocations of managed dlls. These dlls are left in memory as it is expect that they may be used later on in your app and reloading these dlls would be a resource intensive process. It is difficult, if not impossible to unload managed dlls and there may not be a good solution.  However I suspect that once the managed dlls are loaded, you will see the memory moving in the 38,860 to 40,812 range. This memory will not be freed by the framework until the application is terminated.                                                                               
    Couple of ideas:                                                                               
    1) Trying to find resources on the possibility of unloading managed dlls. Apparently there is a way, but it is cumbersome. Couple of years ago, one of my coworkers spent some time on the issue and eventually gave upu2026 Looking around a bit, I have found the following links that may be of some use to you:                                                                               
    http://blogs.msdn.com/jasonz/archive/2004/05/31/145105.aspx                                                                         
    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/a2682b53-12ad-4719-b05c-df1476cb39c9                             
    http://msdn.microsoft.com/en-us/library/system.appdomain.aspx ;                                                                      
    http://www.discussweb.com/c-programming/2391-how-unload-both-managed-unmanaged-dll.html ;                                                                               
    2) Try to see how the latest version of Crystal Reports behaves in your environment. Initially, I would suggest a test on a clean system with an eval version of Crystal Reports 2008. In CR 2008 we manage the memory via the crheapalloc.dll. So the behavior may be different. You can even try to see how CR 2008 behaves without the dll by simply renaming the dll.                                                                               
    An eval download of CR 2008 is here:                                                                               
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx                                                                               
    Ludek

  • Crystal Report XI (C++) : Leak with IReport object ... I think.

    Post Author: NicolasG
    CA Forum: Other
    Hi, I'm working on an application that is using Crystal Report to generate report from a report file (.rpt) and a Microsoft Access (.mdb) file. During our stress test, I noticed that the application memory keep growing. After some work, I came up with a really simple application that reproduced the problem.The application consist in one thread that keep opening report from the report file (i.e. I don't even use the database file yet).Here is a code sample : void CMemoryLeakDlg::GenerateReport(void* param){    CoInitialize(NULL);    OutputDebugString("Generating report - Starting ...\n");    Sleep(1000);    CMemoryLeakDlg* pThis = static_cast<CMemoryLeakDlg*>(param);    ASSERT(pThis);        IApplicationPtr pApplication;    try    {        HRESULT hRes = pApplication.CreateInstance("CrystalRuntime.Application.11");        if (FAILED(hRes))        {            ASSERT(FALSE);        }                ASSERT(pApplication != NULL);                IReportPtr pReport;        while (pThis->m_bWorking)        {            bstrt bstrReportPath(pThis->m_strReportPath);            pReport = pApplication->OpenReport(bstrReportPath);            pReport.Release();            ASSERT(pReport == NULL);        }        pApplication.Release();        ASSERT(pApplication == NULL);    }    catch (_com_error& e)    {        UNREFERENCED_PARAMETER(e);        ASSERT(FALSE);    }    Sleep(1000);    OutputDebugString("Generating report - Ended\n");}I am not a COM expert programmer and probably I am not using the COM interface correctly. My assumption is that I am not closing the report correctly and that the memory is not freed.Any ideas? Any help would be greatly appreciated.Thanks a lot!Nicp.s. We are using Crystal Report XI 11.0.0.1994

    Post Author: DLO34
    CA Forum: Other
    I am seeing this issue also. It seems to be related to the size of the RPT file also. It leaks about 10MB with a 1MB RPT file. I tried opening and closing the RDC print engine for each report but it still leaks. I ran my application through BoundsChecker and it shows that the leak is occurring in the Crystal API. It looks like the release method doesn't work. Crystal Report XI 11.0.0.895

  • Web Service data source report causes Java memory leak

    Crystal Report designer fails to preview a report whose data source is a WSDL web service.  This happens when the Java run time process has exceeded the memory limit specified in the CRConfig.xml file.  The Java memory is never released by Crystal Reports until the Crystal Reports Designer is closed.  Version is Crystal reports 2008 (product version 12.2.4.507).
    This error also occurs in the Crystal Reports Viewer when used in a Microsoft .NET application (framework 3.5) referencing CrystalDecisions.CrystalReports.Engine.dll v12.0.2000.0, CrystalDecisions.Enterprise.Framework.dll v12.0.1100.0, CrystalDecisions.Enterprise.InfoStore.dll v12.0.1100.0, CrystalDecisions.ReportSource.dll v12.0.2000.0, CrystalDecisions.Shared.dll v12.0.2000.0
    I load the ReportDocument object based on the location of the .rpt file and then set the ReportSource object of the CrystalReportViewer control:
    string FullReportName = "TestFile.rpt";
    ReportDocument reportDoc = new ReportDocument();
    reportDoc.Load(FullReportName, OpenReportMethod.OpenReportByTempCopy);
    this.crystalReportViewer1.ReportSource = reportDoc;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();
    The code displays the report in the report viewer.  However, every time the report is refreshed the Java runtime memory increases until the application cannot display the results.  The error messages are "Failed to retrieve data from the database." followed by "Cannot determine the queries necessary to get data for this report. Details: Unexpected error".  If you try to refresh the data once again the following errors occur: "Failed to retrieve data from the database." then "Cannot determine the queries necessary to get data for this report. Details: Schema file is invalid   Java heap space".
    Increasing the java heap space in the CRConfig.xml file merely prolongues the onset of this error.
    Is there a service pack or hot fix for this???
    PLEASE HELP.

    Many thanks for your help.  This solved the issue for our .NET code, however the leak is still present in the report designer.  I was also wondering if you could help further: because of the limits on the java memory process is there a way to ensure that a separate java process is started for each report that is loaded in my report viewers collection?  Essentially the desktop application that i have created uses a tab control to display each type report, so each tab goes through the following code when displaying a report and closing a tab:
    Is there a way to ensure that a different Java process is kicked off each time that I display a different report?  My current code in c# always uses the same Java process so the memory ramps up.  The code to load the report and then dispose of the report through closing the tab (and now the Java process) looks like this:
        private void LoadCrystalReport(string FullReportName)
          ReportDocument reportDoc = new ReportDocument();
          reportDoc.Load(FullReportName, OpenReportMethod.OpenReportByTempCopy);
          this.crystalReportViewer1.ReportSource = reportDoc;
        private void DisposeCrystalReportObject()
          if (crystalReportViewer1.ReportSource != null)
            ReportDocument report = (ReportDocument)crystalReportViewer1.ReportSource;
            foreach (Table table in report.Database.Tables)
              table.Dispose();
            report.Database.Dispose();
            report.Close();
            report.Dispose();
            GC.Collect();
    Thanks

  • Crystal Report Server 2008 V1: Memory hog?

    Hi,
    We installed Crystal Report Server 2008 V1 on a Windows 2003 Server that has 4GB of memory.  I noticed that once CRS started, lot of memory are used.  We have only two active reports on the report server.  This is no other application installed on the windows server.  Ultimately, it will reach to a point where 3.6 GB of memory and 3.0 GB of page file is used (according to the performance window).  The system won't return the memory even I stop the Server Intelligent Agent service.  Is that normal? Does CRS cause memory leak?

    It is 32bit but runs on 64bit (eg. Windows) also as long as the required 32bit libraries are available on the machine.
    Regards,
    Stratos

Maybe you are looking for

  • ** SOAP - Receiver CC - Sync - Error - certificate rejected by ChainVerifie

    Hi Friends, In our interface BPM - SOAP call (Sync), in the receiver SOAP CC, we are getting the below error.  SOAP: call failed: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier In the SOAP CC, we use HTTP protoc

  • Acrobat Reader 10.1.3 does not open Finder in Mac 10.7 to select a location to "Save As".

    Previous version of AR on a Mac would open the Finder window when "Save As" was selected.  Now, only a list of the most recently opened folders and the Desktop are presented as candidate locations to file the .pdf.   A bit of a pain to save to Deskto

  • Cant download ios 5 to ipad

    Hi, Iv got an ipad 2 and need to do the new update for IOS 5, however it completes the download but then a warning message comes up saying "there was a problem downloading the software for the Ipad 2. The network connection timed out" Do you know any

  • GT60 2OC key swap

    Hi I've seen several people asking for two keys to be swapped. I wonder if you could do something like this: Fn key acts like Windows key Windows key acts like application/context menu key (which is otherwise missing from this keyboard) The second ba

  • Cannot type arabic in forms

    Hie all, i am having trouble that i am unable to write in arabic in Oracle forms 10g OS is windows XP. I cant type arabic like forms title, forms labels that is forms IDE. where as i have changed all the required parameters in registry also and my NL