Tag: Code
All the articles with the tag "Code".
Crystal Reports 13 Maximum Report Processing Limit Reached Workaround
In the Visual Studio 2012 version of Crystal Reports 13 there is a threshold that throttles concurrent reports, this also includes subreports, to 75 reports across a machine. This means if there are 5 web applications on a given server all opened reports across all 5 web applications counts toward the 75 report limit.
Considerations When Throwing Exceptions
There is an underlining philosophy in this system that nulls are bad. In most cases where a null can be generated an exception is thrown. At first I did not see a problem with this. I saw it as an architecture decision, an aesthetic, but as I interface with the code, it’s apparent to me it’s an architectural mistake.
Creating a Generic Type at Runtime
To use a runtime type with an IOC container like StructureMap to find a generic implementation, create the generic type using `MakeGenericType` and then retrieve the instance from the container using `_container.GetInstance(type)`.
Code Refactor
Refactoring a large C# file to be leaner and easier to maintain.
Code: Weighted Random Distribution
This blog post presents a method for generating random numbers, with the pitfall of the predictable nature of time-based random number generators.