473,608 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Report License - Multiple Thread Safe?

First let me start by saying that this problem is not consistently
reproducible. I have a windows service that creates reports for a
group of entities. This service can process multiple groups at a
single time, where each group is running in a separate thread. I have
noticed mixed behavior when running multiple groups at one time (in
separate threads). I have received the following two messages logged
as errors.

- A Crystal Reports job was delayed 2 second waiting for a free license
to become available. More licenses can be purchased direct from Crystal
Decisions or through the Crystal Decisions Online Store.

- A Crystal Reports job failed because a free license could not be
obtained in the time allocated. More licenses can be purchased direct
from Crystal Decisions or through the Crystal Decisions Online Store.

This is unique to running multiple threads simultaneously, and does not
occur if one group is processed followed by the next group in
sequential order. In addition, this does not occur every time that I
run the test.

My thought is that there is one license that is being passed around and
that only a single thread can have it at any given time. For example
if I have 4 threads that are running, and producing reports. The first
obtains the license, does its job, and drops the license. Now the
second (or any other for that matter) obtains the license, does its
job, and drops the license. However since these all threads could
potentially be requesting the license at a single point in time, this
could cause an undesired affect. If thread 1 obtains the license, and
thread 2 is waiting for it. As thread 1 releases the license, thread 3
obtains it, thread 2 is still left waiting. A few more cycles like
this, and all of a sudden thread 2 will timeout. Am I wrong in
thinking that there might be a race condition with the license and
multiple threads? Is Crystal Reports thread safe?

I'm using the Crystal Reports that is integrated with Visual Studio
2003, find the versions below.

Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322 SP1
Crystal Reports for Visual Studio .NET AAP50-GS00000-U7000RN

Any thoughts?

--ian

Mar 16 '06 #1
3 8440
The Crystal Reports that is included with VS.Net 2003 only supports one
concurrent thread for report generation. I've run into this problem
also. My solution was to create my own system of checking whether
there was an available license and queue the other requests. There's a
static function called something like 'GetCurrentLice nses' that's
contained in the 'ReportDocument ' class, and maybe elsewhere. You can
check the integer it returns to see how many licenses are available.
AFAIK crystal doesn't do anything special to wait for a license, it
just throws an exception.

FYI: In my solution I created a high priority and low priority queue in
case the waits got long and something important was waiting (e.g. a
scheduled report would be in the low queue and a user requested report
in the high queue).

Mar 21 '06 #2
Thanks. That was my guess, but it's nice to get confirmation. It's
sad that we have to jump through hoops and provide our own semaphore to
handle report generation from multiple threads.

--ian

Mar 21 '06 #3
Yeah, I think the real answer is that Crystal wants the .Net/COM
objects to be a launch pad into a full fledged crystal enterprise
server installation. Which is why they limit the licensing so much.
It will be interesting to see if/how this changes now that MS Reporting
Services is on the market and maturing.

Mar 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6188
by: Mike | last post by:
Hello All, I'm trying to deploy my windows-based application using crystal report. i package the setup by including the crystal report file, the exe file, and two merge modules for the crystal report (crystal_managed2003.msm and crystal_Database_Access2003.msm). when i installed it on a different computer before running it. i verify the neccessary files was added. when i ran it, it return "Cannot find KeycodeV2.dll, or invalid keycode."
1
2846
by: Gudni G. Sigurdsson | last post by:
Hi. I am working on a program for the .NET Framework written in C# with Visual Studio .NET. With this program, one can print a report realized with the Crystal Report software included with VS .NET. This has all been working fine until recently, when I had to install and run the program on more computers. Then I suddenly start getting error messages like: 'Cannot find KeycodeV2.dll, or invalid keycode'. The .NET framework is, of...
0
2325
by: Robert Warnestam | last post by:
Hello, I have some problems deploying Crystal Reports. I'm using Visual Studio 2005 Beta 1. In this version Crystal Reports (9.7.3500.0) is included. I created a small test application (ASP.NET) that shows a simple report. It work fine with on my local computer. Now I'm trying to deploy this sample application on our web server but I really need some help.
1
1725
by: Grey | last post by:
I am going to design a web application with crystal report for more than 200 users. I will use the crystal report viewer component in IE. I want to know how to calculating the license?? Do I pay to subscribe any license charge in order to deploy the crystal report for those 200 users? What is the license of crystal report .NET?? is it per server or per users?? what is the no. of user license come with the crystal report .net?? I am using...
0
1692
by: T.J. | last post by:
I have gotten great help here in the past, and after searching and researching this error, I felt I would turn to the board and see if I could come across any further assistance. Any advice will be greatly appreciated. I have a VB.Net project that has a List Box Control that lists out all Crystal Reports stored in the project's /bin folder (all .rpt files). Once one of the report names are double clicked the Crystal Report Viewer...
1
1940
by: Agnes | last post by:
my company got crystal report license to write the report , but my client didn't got it. in my vb.net application, i will call that report. (it runs very well, in my company) Everytime,I modify the report, i will modify in company first, and then copy to my client. Now, as my client run the application and print the report . it sometimes got such errors. "A Crystal Report job failed because a free license could not be obtained in the...
5
2392
by: Jay | last post by:
I am getting mixed messages from the asp.net website hosting providers - some say they do not support Crystal Reports due to a $25,000 per cpu licensing fee, others say all I need to do is install Crystal Reports XI (about $500) on a dedicated server and it will run fine. Will Reports developed with the embeded Crystal Reports in VS 2005 run in a Crystal Reports XI environment? -- Thanks
9
8243
by: Altman | last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my reporting needs. I was wondering if anybody has an opinion on how the new reportViewer control works in comparison to Crystal. One of the main problems I have been having with Crystal Reports is that they seem to load very slow no matter how small the...
2
446
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is interested in using crystal reports as a web based reporting tool to get data out of a sql server database and we have always created our own bespoke reporting tools but this particular client wishes to go down the crystal reports route. 1) We...
0
8059
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8000
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6815
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4023
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.