Is Memory Consumed by LINQ
Hello Is LINQ can consume memory ?? If Yes, How can we release the memory consumed by LINQ ?? Thanks & Regards, Naga Suresh D
View ArticleHow to get how much memory consumed by application
Hello, I am using a WPF application which consuming more memory. Is there any way to get exact memory information consumed by application ? Actually I have used the below lines of code to get the...
View Articlecreate pdf file from C#.net
Hi,I need to do the following task in C#.Net. Can anyone tell me which is the best method to follow? Is there any in build features available in .net? Or do we need to use some external libraries.*...
View ArticleAny tips for making adding ListViewItems to a ListView faster?
Hi, I am adding items to a ListView by first populating an array<ListViewItem^> and then using ListView->Items->AddRange(). The AddRange() alone for 70,000 items takes about 50 seconds...
View ArticleHow to write a .Net desktop app using HTML5 for the UI?
I've written many .Net apps using Winforms and many more using WPF for the user-interface framework. But Microsoft has been hinting rather strongly that they expect HTML5 to be used for future...
View ArticleSystem.Threading.Timer and Window Service
Hi All, I have done some reading and have come to the conclusion that the System.Threading.Timer is best for a Windows Service scenario. In essnece, my situation is as follows: Upon starting...
View Article.NET Runtime version 2.0.50727.5420 - Fatal Execution Engine Error
Hell all,I have created Windows Service based on .Net 2.0, builded in Visual Studio 2010. It works fine on next operation systems:Win2003WinXPWin2008But sometimes my services have crash in Win2008 R2...
View ArticleVery strange. My "SubstringThenTrim" code is much slower than what it is...
I want to improve the performance of code like the following,.Substring.Trim Approachvar str = " abc def "; return str.Substring(5, 10).Trim(); //*I want to improve the performance of line * by the...
View ArticleWhy can I set a neutral culture for a thread?
According to the MSDN library documentation, setting Thread.CurrentCulture to a neutral culture should throw a NotSupportedException. And there used to be a time when I hit this exception. But today,...
View Articledownload issue when Background Intelligent Transfer Service (BITS) gets...
I am trying to implement Background Intelligent Transfer Service(BITS) scenario, where it downloads file from IIS server. I have implemented call back "IBackgroundCopyCallback" as well. Its working...
View ArticleType.GetProperty for null properties
Type.GetProperty is returning a null for PropertyInfo (pi in the code block) when the underlying property has a null value. I would have thought it would have returned the PropertyInfo. private...
View ArticleAuthorize ADFS roles in mvc
I have a win 8 app in which I want to authenticate ADFS user based on role. I am using code like this AuthenticationContext authenticationContext = new...
View ArticleXDocument - Indentation formatting is removed when reading XML string for...
Using XDocument to load an XML string, i noticed that while reading the string usingXDocument DocumentRoot = XDocument.Parse(inputValue);A node that originally looks like this in the input...
View ArticleC # - Visual Studio 2008 - Open, read and write CSV files
I am really begginer in C# but I have used other graphical languages (Labview). In Labview, there are very simple steps to be able to Open, read and write CSV files. I am trying to replicate it. Please...
View ArticleC# ServiceController Run as Administrator on demand
I have written a C# program that normally will NOT be run as an administrator.I have a method using the ServiceController class which is to stop and start a Windows service.Is there a way to run this...
View ArticleProblem while adding zkemkeeper.dll in MVC application visual studio13
Hey! I am working on MVC visual studio 13 and while I am trying to add reference (zkemkeeper.dll) to my project it displays error that it cannot be added. I am working on a project which will use...
View ArticleInstalling Bluetooth Printer Drivers on newly created COM port
Originally posted to stackoverflow I am working on a WPF application that needs to pair a bluetooth printer and then subsequently install the printer drivers for that printer. The printer in question...
View ArticleWhy I am getting Type of 'UpdateLoadingProgress' is not CLS-compliant in this...
I am getting this warning (I have Warnings set as errors):WarningError 4 Warning as Error: Type of MyNamespace.MyClass.UpdateLoadingProgress' is not CLS-compliant C:\MyPath\MyClass.cs 41 61...
View ArticleReboot a list of servers
Hello All, I am pretty much a novice at coding & i need your help. I want to reboot a list of remote servers & ping them until they come online. I did try my hand at rebooting a single server,...
View ArticlePrinting customized paper size of PaperSize.RawKind 256.
I use the wpf / xps print technology, and I want to print with user custom paper size.But if PaperSize.RawKind is 256 and this printing paper size is different of the printer driver's default size,it...
View Article