Crystal Crashing when many users

Hello,
I am having an issue with the code below:
            try
                crystalReport.Load(rptFilePath);
            catch (Exception ex)
                return("Error Loading Crystal RPT File (" + rptFilePath + "): " + ex.Message);
It works fine usually, but when I get many users trying to run a report at same time I get an Exception:
"Load report failed".
Furthermore once I get this exception it looks like no other users can run reports (as if the report component crashed).
I have to either reboot IIS or wait some time and it looks like the Crystal Component recovers on it's own.
I was warned that by using this free Crystal VS Component, I can only have max of 4 concurrent users calling it at the same time.
Is that the correct number about 4???
So I understand it is giving errors under heavy usage.
But it seems that t is also crashing after the first heavy usage and then no longer works after that.
Is there a way to make it recover without rebooting IIS or waiting a long time?
Thanks,
Yury

Hey Ludek,
Thank you for your response!
As far as:
2) You are launching too many Print Jobs (see below)
All my reports DO NOT have any Subreports.  They just have Groups & Detail(s).
Output as PDF or Excel.  So I do not think that it is issue, right?
1) You are not using .Close and .Dispose on the report objects once you are done with them.
I AM NOT using .Close and .Dispose so this sounds like the issue.
Please see my simple code below.
So do I just add 2 more lines at end?
            crystalReport.Close();
            crystalReport.Dispose();
Is that it or there something else I should be doing?
Thanks,
Yury
CODE
            ReportDocument crystalReport;
            string rptFilePath = System.Web.HttpContext.Current.Server.MapPath("~/Crystal/" + rptFileName);
            MemoryStream mStream;
            crystalReport = new ReportDocument();
            crystalReport.Load(rptFilePath);
            crystalReport.SetDataSource(DS.Tables[0]);
            mStream = (MemoryStream)crystalReport.ExportToStream(ExportFormatType.PortableDocFormat);

Similar Messages

  • Crystal Crashes when exporting to PDF

    Hi Experts,
       Crystal reports crashes when exporting a report to PDF. I am using Crystal Reports for SAP Business One, what could be causing this..is it a patch level problem ?

    Hi,
    Please check this thread http://scn.sap.com/thread/3303863.
    What is your B1 version and PL?
    Thanks & Regards,
    Nagarajan

  • Crystal crashes when trying to "Set Datasource Location"

    Hi,
    My client's Crystal app (version 9) crashes when she attempts to remap a report using the "Set datsource Location". Basically, as soon as she selects it, she gets a msg ..something like "CRw32.exe error" and the app bombs.
    Any ideas on what may cause this folks ??
    thx a lot,
    Steve

    Open the report up and Click on Database, Set Location, find ODBC in the list and connect using your DSN. Now select your DB and tables, varies so you may have just click on the OLE DB connection and the n DSN and click Update button or you may have to do this for each table also.

  • Crystal crashes when add new parameters to a stored proc in a subreport

    This one has been driving me nuts so any help much appreciated...
    I have a stored procedure (Oracle 9i) that is used as the datasource for a subreport (needs to be in the subreport as I need to pass multi-value parameters to the proc - something I've done in numerous other procs/reports).  All of the parameters from the proc are linked to data/parameters on the main report.
    The report works fine at the moment. 
    I need to add three new parameters to the proc with an If statement on each one to run various bits of code depending on what is passed in.  This is where the trouble starts.
    The proc works.
    If I create a main report based on the new proc, it works.
    If I create a subreport based on the proc and DON'T link it to the main report, it works.
    If I create a subreport based on the proc and DO link it to the main report, Crystal crashes with no explanation (just that painful error that apologies for the inconvenience).  It is not all the parameters that cause this problem - it's not even restricted to just the new parameters or even just to ones that are used in the IF statements.
    This is not the first proc to do this to me - just the first one where the new functionality was too critical to strip out for now.
    I have been trawling the net and trying all sorts of things for days so I am hoping someone out there has a suggestion!
    Versions: Oracle 9i, Crystal Reports 11.0.0.1994

    Hi Daniel,
    Starting from the basics, after you've inserted the subreport don't link it yet.  Edit the subreport and verify the database.  Once it's verified, try linking the reports and adding a parameter. 
    Verify the linking you are using.  I've seen where the field from the main report was passing invalid or coruupted data and caused the subreport to die a horrifying death. 
    Good luck,
    Brian

  • Crystal crashes when using print or page setup

    I am using Crystal Reports 2008 on Windows VISTA Business OS (32 Bit).  Crystal crashes everytime I hit the page setup or print.  Any suggestions would be helpful.  I am trying to setup a landscape report but cannot even get into the page settings.
    Randy Williams

    Hi,
    Please try with this:
    Run a command prompt as administrator. From the start menu, select "All Programs", then "Accessories" and right-click on the "Command Prompt" shortcut and choose "Run As Administrator". From here you can use the following command to disable Data Execution Prevention (DEP) with the following command:
    bcdedit.exe /set nx AlwaysOff
    Keeping your command prompt open, run your setup or other process being stopped by DEP. Then, to turn it back on again, do the same and run the following:
    bcdedit.exe /set nx AlwaysOn
    Now try again.
    Regards,
    Shweta

  • Crystal crashes when tables are linked.

    Hi,  We have a Crystal Reports developer who is working with Crystal from a Citrix session.  When he tries to join tables he receives a Data Execution Prevention error and Crystal terminates.   What can be causing this error and how can it be fixed.
    After the Citrix servers where restarted last week the error did not appear again until yesterday.

    Hi,
    One of potential reasons is DEP (data execution prevention) settings.
    Click Start, click Run, type sysdm.cpl, and then click OK.
    On the Advanced tab, under Performance, click Settings.
    On the Data Execution Prevention tab, use one of the following procedures:
    Click Turn on DEP for essential Windows programs and services only to select the OptIn policy.
    Click Turn on DEP for all programs and services except those I select to select the OptOut policy, and then click Add to add the CRW32.exe (you have to navigate to CR 2011 executable)
    Check below threads, It may help you.
    http://scn.sap.com/thread/3245960
    http://www.morovia.com/kb/PRB-Crystal-Reports-Crashes-Preview-Report-10079.html
    --Praveen G

  • Crystal Crashes when Creating a Connection to MySQL 5.0 through ODBC

    Post Author: [email protected]
    CA Forum: Data Connectivity and SQL
    I am using a MS Server to run BO Server.  I open Crystal Reports, create a new connection to my MySQL Database through ODBC (that is set up as a System DSN).  After i put in the log in credentials the dang thing crashes... Anyone?

    Now the problem has gone from bad to worse.
    I previously had a connection to my database but just couldn't see the tables.
    Now after I added another user I can't even make a connection. Instead I get an error message that says "An unidentified error has occured"
    My server and database are actually running. I can loginto my database through the MySQL workbench. It says it's running. The apache server also says it's running and if I key in localhost in my internet explorer it says "It works!"
    I have now deleted the new user in MySQL  that I added and now I can't even connect to the database in Dreamweaver.
    Any suggestions?
    Thank you,
    Blain

  • Mac mini crashes when switching users without a display

    Hello, i have this Problem on my Mac mini 5.3 with 10.6.8. I connect to the mac over vnc and when i want to switch the user the mac freeze. I got the Problem only when the Mac Mini hasnt got a display pluged in. When a Display is plugged in i can switch users over vnc. Can somebody help me??
    Best regards

    Our 1 year old mini also crashed trying to watch a tv show from the internet - after about 5 minutes of the show it started automatically rebooting over and over again (10 + times). Now I can't get it to start up at all. We use this with our HDTV as an entertainment machine

  • System preference crashes when add user for ssh connection...

    Hi all, I've enable ssh to all user and it works perfectly. When I try to restrict the access trying to add an user ( clicking on + ) on the share the system preference crash... I have a new mac pro with all update ! Anyone have the same problem ? Thank you, regards.
    Message was edited by: egariM

    Hi egariM. Can you post the contents of the crash report?

  • IDVD crashes when specific user hits burn button

    I am having trouble with one of our G5 powermacs. It is running 10.4.6 with 3GB of Apple RAM. I am using iDVD 5.0.1. One of the user accounts on the machine has lost the ability to burn movies in iDVD. Other accounts can use it fine, btu when logged in as the "troubled user," iDVD crashes immediately when the burn button is clicked. I have tried projects that worked in the past and created simple tiny projects and they all crash.
    I guess the problem is in the Library folder in the troubled user's home directory, but I can't fix it. I deleted any preferences and caches that said "idvd" in them, but there was no improvement.
    Any ideas?
    Thanks!

    I am having trouble with one of our G5 powermacs. It is running 10.4.6 with 3GB of Apple RAM. I am using iDVD 5.0.1. One of the user accounts on the machine has lost the ability to burn movies in iDVD. Other accounts can use it fine, btu when logged in as the "troubled user," iDVD crashes immediately when the burn button is clicked. I have tried projects that worked in the past and created simple tiny projects and they all crash.
    I guess the problem is in the Library folder in the troubled user's home directory, but I can't fix it. I deleted any preferences and caches that said "idvd" in them, but there was no improvement.
    Any ideas?
    Thanks!

  • Intel iMac - System crashes when switching users

    Hi all,
    Having a very frustrating problem with my iMac. About 50% of the time, when I use fast user switching to move between accounts, my iMac crashes. The screen goes dark, and advises me that I need to restart. The error also occurs when I log out of an account completely, and log into a different account, again about 50% of the time.
    I have restored the computer completely, which is, I'm told, supposed to eliminate any software issues, so am I dealing with a hardware issue here?
    I'm at a total loss. Any help would be greatly appreciated.
    24'' iMac
    Intel Core 2 Duo 2.93GHz
    4GB RAM
    ATI Radeon HD 4850 512MB Video Card
    1 TB HD

    HI,
    *"The screen goes dark, and advises me that I need to restart. "*
    What you are experiencing is called a, "kernel panic". Go here for information to Resolve kernel panics
    Also, go to System Preferences/Accounts and make sure there aren't any apps listed there to launch on boot.
    While you have the System Preferences/Account pane open make sure Enable fast user switching is selected, then click the gold icon padlock (you will be prompted for the admin password) to lock it and Quit System Preferences.
    Carolyn

  • Adboe bridge crashes when restircted user tries to launch

    Hi we are a school and have about 30 windows 7 pc's on a domain with the exact same problem.
    When a student logs on (restricted account, of course) and tries to launch Bridge, it just crashes.
    I have had a look around google and the forums and I see a lot of people with the same problem, but no real fix for the issue.
    I have tried to use a path rule in Group Policy to circumvent the problem, as we have done in the past with other applications, but to no avail.
    Here is the eventlog info.
    Faulting application name: Bridge.exe, version: 4.0.5.11, time stamp: 0x4dedf550
    Faulting module name: Bridge.exe, version: 4.0.5.11, time stamp: 0x4dedf550
    Exception code: 0xc0000005
    Fault offset: 0x005b02f3
    Faulting process id: 0x938
    Faulting application start time: 0x01d00d50fa622fbd
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Bridge CS5\Bridge.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe Bridge CS5\Bridge.exe
    Report Id: 38a0305d-7944-11e4-a1d8-94de80fa7b22
    Can anyone please shed some light on this issue?
    Thanks
    Ken

    Hi,
    your question is not clear and lacks mentioning of the JDeveloper version and the browsers you exprience issues. Als what does "crash" mean - and exception ?
    rank

  • Outlook Express timing out when many users connecting

    I have a 10.5 xserve running imap for a company with many locations across the US. At many of these locations that have 5 or 6 people - the last person to open Outlook Express cannot connect to imap. It times out. There is no error on the server in any of the logs - it just never connects. If you close one of the other users out at that location then the previous machine starts working. It's almost like there are too many connections from the 1 ip of that location and cyrus starts denying more. It is becoming a problem.
    Is Outlook Express opening way too many imap connections per user? Would Outlook be better? Is there a way to tell cyrus to allow more connections? (Currently in serveradmin I have no limit set)

    Thanks for your quick reply!
    I neglected to mention I'm running FF 24.0 on a Mac 10.9 Mavericks system. There was not a Tools -> Options choice on the menu, but I did find it on the Preferences panel, on the Advanced tab (see image 1).
    I made the auto-detect selection as you advised and restarted FF. After navigating to a video I once again received the error message (see image 2).
    So either I did something wrong (possible but I don't think so; I double-checked the setting after the restart and it is set to auto detect) or the problem lay elsewhere.
    Anything else come to mind?

  • What happens when multiple users access the same servlet?

    Do the users share all the same resources? Or is a new process generated for each user? I have a servlet that builds a string to return to the user and I only have myself to test, so I can't really see what happens when many users access the servlet. Is there a possibility that the string will get screwed up, like when dealing with multiple threads, or do all the users get their own resources and I don't have to worry about that?

    huh? if you can point a test servlet at it, you can point a browser at it (even if the servlet does not serve html it will run)
    try pasting the servlet URL into a web browser
    refreshing multiple browsers repeatedly could provide a manual test

  • QT Player 7.0.2 crashes when encoding from MJPEG into H.264

    Another interesting thing about QT 7.0.2 (first one was 10GB bug, check my earlier thread here) - it crashes when the user switches to another account and back while the QT Player encodes MJPEG video into H.264. How to reproduce this bug, step by step:
    1) open any MJPEG video in QT Player 7.0.2, could be in MOV or in AVI, doesn't make difference which
    2) do File->Export
    3) choose "Movie to QuickTime Movie" in the "Export" drop-down menu
    4) in the "Save exported file as" dialog go to Options->Video->Settings and set H.264 as your output video codec, encoding settings don't make a difference as well
    5) close "Movie settings" dialog, then click "Save" in "Save exported file as" dialog
    6) QT Player starts encoding your MJPEG video into H.264 video, the small "Progress" window appears with a progress bar inside
    7) now switch to another user account using Fast User Switching feature of Windows XP
    8) switch back to the account where QT Player was encoding your MJPEG video
    9) observe the crash window - your QT Player has joined his ancestors now
    Can anyone reproduce this? If yes, please post your crash dump here, so that I can send another bugreport to Apple (10GB bugreport is in the works now, almost done
    If you follow all the steps above and your QT Player does NOT crash, please post the details about your system. My setup is QT Player Pro 7.0.2 and Windows XP Pro SP2. Also post the details about your MJPEG file - the codec you used to encode it (mine two codecs were Pegasus PicVideo 3 and Apple Motion JPEG A), and the resolution (mine was 720x480).

    when i said i couldn't do audio and video at the same time i meant that i cannot edit and process video and at the same time record or edit ADR, sound effects. i have an audio engineer in the audio room working on the audio while i work on the video. is that clear?
    Yeah, now it sounds reasonable. You possibly could do that on a single computer using X Windows or Windows Terminal Server but it's totally different topic.
    as for fast user switching...here's a comment from another forum... "just don't use fast user switching, it isn't implemented well and it breaks some programs"
    "Don't use Windows, it isn't implemented well and doesn't run some poorly written MS-DOS games"
    I found several others in that regard, but you know more about it so i don't need to post links, right? plus a lot of them dealt with quicktime, but again you are the expert.
    If you found anything that's related to QuickTime crashes during account switching, you're welcome to post this concrete info here, it'll help with my bugreport.
    and since you make the inference that i have a cheap system operating on ms-dos which is laughable because that means that you can't read.
    I said that when I read about single-task computers this reminds me about MS-DOS times, but now it looks like it is not about your case, since you have two people working in parallel on two machines.
    i looked up on Yahoo! the terms "mjpeg"+"crashes" and got 16,800 hits. plus i do recall on another forum someone was having problems with mjpeg and the responder said it wasn't a good codec to work with...
    So what's the deal if 95% of these 16800 Yahoo posts are about crash in Premiere or Microsoft Movie Maker or some other buggy tool? You could even search for an f-word, and you'll find a lot of posts with that word, then you can make any conclusion you like about that word being so often cited and then we could start a lengthy discussion about it, but what's the point? I can find 10000 posts about "single task" + "bad" but I'd never use this to justify anything. I give you concrete facts from my experience, so please give me something concrete in return, not 16800 Yahoo posts about something out there.
    "Disadvantages: There's also the problem of recompression. While the human eye can be fooled by JPEG's compression, computers aren't. Thus, when you compress from MJPEG into another format to use for distribution, you will receive a lower-quality picture than if you had a lossless source because there is data missing which, while it's not important to the visual cortex, is very important to a mathematical analysis of things such as color data. The only time you should use MJPEG otherwise is for fast-editing temporary files, but DON'T use them as your final source."
    I know that already, thank you.
    since you said i'm the one who suggested that you use uncompressed video and that doing so the computer doesn't crash...
    You suggested that in a different thread about 10GB MJPEG limitation. That's another bug that may be or may be not related to the crash problem.
    then why don't you work that way and finish your video?
    Yes, I can employ this trick. I will do it if I'm forced to (i.e. if I absolutely have no other way to load MJPEG in QT Player and Apple refuses to fix that crash). However, I'll push Apple with fixing the issue at the same time. Maybe they'll work something out while I'm using uncompressed RGB workaround or some other workaround.
    mjpeg is unstable in that regard so contact the codec manufacturer/developer and ask them why or give them the bug report because it's not apple
    Unfortunately it is Apple, because it's the Apple's software that crashes. All the other codecs and video editors work fine, and there are even conditions when Apple doesn't crash, like loading uncompressed RGB. Since crash is inside QuickTime I will send my bugreport to Apple. If the crash had happened inside the MJPEG codec, I'd have sent the bugreport to

Maybe you are looking for

  • Result set from two fact tables

    Hi, I have two fact tables, fact1, fact2. These two fact tables share common dimension dimension1. In RPD I joined dimension1 to fact1, fact2. In Answers I pulled the columns from fact1, fact2 and dimension1, I am getting ODBC Error, no fact table ex

  • Empty array of unknown size in formula node

    I have to declare an empty array say, P of unknown size in formula node. How to do that?

  • Flash CC Trial HTML Project

    Hi All, Hoping this is something simple I've done wrong! I downloaded the trial version of Flash CC and was looking to create a HTML project but I don't seem to have the option. I only have options for ActionScript or AIR projects. Can anyone help wi

  • Work hours per period

    Hi guys As we know SAP calculates the work hours 173.33 based on the employee's work schedule. However, what do you do if a client has been using something else, say 176hrs?  We have explained to the client how the system arrives at 173.33 hrs but cl

  • Valuesets

    i have an issue with the creating user inputs using value sets the first input is agreement type(user gets an lov containing 'Standard','Blanket') for this lov i have created independent value set named napesco_payment_Supplier the second input is Pu