Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralSharing Crystal Reports Documents between .Net and Delphi. Pin
Shahin7719-Jan-04 9:37
Shahin7719-Jan-04 9:37 
Generalmemory problems!! Pin
abc87619-Jan-04 9:30
abc87619-Jan-04 9:30 
GeneralRe: memory problems!! Pin
Heath Stewart19-Jan-04 19:31
protectorHeath Stewart19-Jan-04 19:31 
QuestionConvert a bitmap with 24bpp Pixel Format into 1bppIndexed Pixel format?? Pin
FiDz19-Jan-04 8:41
FiDz19-Jan-04 8:41 
AnswerRe: Convert a bitmap with 24bpp Pixel Format into 1bppIndexed Pixel format?? Pin
Mazdak19-Jan-04 8:52
Mazdak19-Jan-04 8:52 
AnswerRe: Convert a bitmap with 24bpp Pixel Format into 1bppIndexed Pixel format?? Pin
leppie20-Jan-04 6:35
leppie20-Jan-04 6:35 
QuestionSystem.Activator() - Performance issue? Pin
Jonas Follesø19-Jan-04 8:27
Jonas Follesø19-Jan-04 8:27 
AnswerRe: System.Activator() - Performance issue? Pin
Heath Stewart19-Jan-04 9:13
protectorHeath Stewart19-Jan-04 9:13 
The AppSettings - like all configuration sections after initial reads - are cached so accessing this won't cause the app to parse XML each time. Using Activator.CreateInstance is also fairly common, and even though it require a few more cycles to instantiate the Type, this would be negligable for code that isn't burdened with lots of requests. If this is the case, you could instead cache the Type in an Application state variable. That would at least save you a little time. Since any changes to the .config result in the AppDomain for the web application to reload, you wouldn't even have to worry about cleaning up the application state variable. Just put some check for this variable in your code like so:
if (Application["DalcType"] == null)
{
  Application["DalcType"] = Type.GetType(...);
}
The Application reference you can get depending on where you request it, whether that's in a Page or from the HttpContext.Current reference. This would cut down the amount of code required to execute to get the Type, thus boosting performance some.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: System.Activator() - Performance issue? Pin
Jonas Follesø19-Jan-04 9:54
Jonas Follesø19-Jan-04 9:54 
Generalabout reports Pin
Dimitris Iliopoulos19-Jan-04 6:07
Dimitris Iliopoulos19-Jan-04 6:07 
GeneralRe: about reports Pin
Guillermo Rivero19-Jan-04 6:14
Guillermo Rivero19-Jan-04 6:14 
Generalprinting with CrystalReportsViewer Pin
troels_sorensen19-Jan-04 4:12
troels_sorensen19-Jan-04 4:12 
GeneralRe: printing with CrystalReportsViewer Pin
Heath Stewart19-Jan-04 4:50
protectorHeath Stewart19-Jan-04 4:50 
GeneralRe: printing with CrystalReportsViewer Pin
troels_sorensen19-Jan-04 5:26
troels_sorensen19-Jan-04 5:26 
GeneralInitialised data in C structures using C# Pin
Member 55383319-Jan-04 4:10
Member 55383319-Jan-04 4:10 
GeneralRe: Initialised data in C structures using C# Pin
Heath Stewart19-Jan-04 4:42
protectorHeath Stewart19-Jan-04 4:42 
GeneralRe: Initialised data in C structures using C# Pin
Member 55383319-Jan-04 6:07
Member 55383319-Jan-04 6:07 
GeneralRe: Initialised data in C structures using C# Pin
Not Active19-Jan-04 9:04
mentorNot Active19-Jan-04 9:04 
GeneralRe: Initialised data in C structures using C# Pin
Heath Stewart19-Jan-04 9:06
protectorHeath Stewart19-Jan-04 9:06 
GeneralRe: Initialised data in C structures using C# Pin
Not Active19-Jan-04 9:35
mentorNot Active19-Jan-04 9:35 
GeneralSerial port comms Pin
tim_mid19-Jan-04 3:11
tim_mid19-Jan-04 3:11 
GeneralRe: Serial port comms Pin
troels_sorensen19-Jan-04 4:15
troels_sorensen19-Jan-04 4:15 
GeneralURGENT...problem with Windows Media Player ! Pin
pahluwalia19-Jan-04 2:54
pahluwalia19-Jan-04 2:54 
GeneralRe: URGENT...problem with Windows Media Player ! Pin
Not Active19-Jan-04 2:57
mentorNot Active19-Jan-04 2:57 
GeneralRe: URGENT...problem with Windows Media Player ! Pin
Heath Stewart19-Jan-04 4:39
protectorHeath Stewart19-Jan-04 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.