reg-free COM with VB6 exe/C# dll run time error occur in framework 4.0 but...
Hi I have some problem with a program in vb6 that call a c# dll. The exact hierarchy is a VB6 .exe calling a vb6 dll calling a c# dll. I follow this walkthrough to create the manifest...
View ArticleArray.IndexOf to find location of vbCr, vbLF of vbNull
hello,I am looking for most efficient way to process return string from my test devices.Some of my devices terminate string with Chr(13), some with Chr(10), and Chr(0) is also possibility.As of now I...
View ArticleHow to prevent garbage collection from pausing my application?
(I have already posted my question on StackOverflow, but since it only resulted in discussion rather than a solution I think it's better to post it here for some more advice. Just for reference:...
View ArticlePotential memory leaks when object instances die
Hello,I am working on a pub/sub event broker of sorts. Not based on event-aggregator, but rather, this one operates on actual language level events (publishers), and wires up event handlers...
View ArticleHow do I reinstall CLR without rebooting the system?
I have LOH problem for my IIS/ASP.NET program. I want to reset CLR without rebooting the server at night time. How do I accomplish it?Is there a command line macro or bat file?Thanks in advance,PingalaSP
View ArticleDllExports like DllImport in C#
I have question. Why .NET platform and C# does not support DllExport attribute ? What are technically problems ?I know - there is DllExport on NuGET but why Microsoft does not support this attribute ?I...
View ArticleCould not load file or assembly 'System.Web.Http, Version=4.0.0.0,...
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code....
View ArticleThread and Task Issue
Hi,I want to achieve the http request with asynchronous thread.However I found that if it will block the main thread if I use Task in the new thread.This is the code I test in winform (I don't think it...
View ArticleCOM interop: issue with C-style array of interface pointers
Dear community,I have an issue with COM interop. I need to marshal a C-Style array of interface pointers. I have changed IL to get this array marshaled correctly but I have issues accessing the array...
View ArticleHow Do I Get a Printer's Associated Icon?
I am trying to figure out how to get the icon that is associated with an installed printer or device. For example, on Windows 7 if you goto the Devices and Printers dialog you will see a list of...
View ArticleObtaining debug symbol (PDB) files for .NET Framework 4.5.2
Hello,It seems that Microsoft forgot to publish the debug symbol files for the .NET Framework binaries distributed with the .NET 4.5.2 update.For example, the following diagnostic message is printed by...
View ArticleIs there any side/hidden effect to use useLegacyV2RuntimeActivationPolicy for...
We are upgrading our application to VS 2010 + .Net 4.0. Inside our company, we are using other group's library and they are .Net 2.0 assembly. Therefore we have to use...
View ArticleWhere are log file when an application has stopped working?
Hi,I made an application, and I developed more and more versions of the main one and of all its components. I have an old and a new version of my application (with almost all .dll developed by me and...
View ArticleRead any document (like .doc, .rtf , txt ,pdf) in ASP.Net , C# and show in...
Hi friends..I am creating a project..that is related doc viewer..It means what ever we are uploading documnet like .doc,.pdf,.rtf it should be read all the content as it is diaplay it word documnet...
View ArticlePInvoke: When is the memory allocated by the CLR marshaller freed?
I am using PInvoke to pass the following class to unmanaged C++ when the app starts up. All the values are passed in correctly as I step through the code. Inside the called C++ method I save a the ptr...
View ArticleConvert a .PFX file to .SNK file
Hi all,Is it possible to convert an existing .pfx file to a .snk file with a public/private key in it ? SN.EXE seems only be able to generate a new key pair .snk file.
View Articlehow to provide system.diagnostics.performancecounter impersonation through c#?
i have used the following code,static void Main(string[] args){PerformanceCounterCategory cat = new PerformanceCounterCategory("Processor", "172.16.2.171");List<PerformanceCounter> counters = new...
View Articlelazy.IsValueCreated is false
Hi,When the value of lazy.IsValueCreate is true.This is my code below: class Test { int[] _array; public Test() { Console.WriteLine("Test()"); _array = new int[10]; } public int Length { get { return...
View ArticleWhat would be causing my obfuscated c# application to crash on just one...
I have two C# winforms applications that get obfuscated and released to clients. I have used the same method for obfuscation for several years now and it has worked great. Now I have one Windows 8.1...
View ArticlegcConcurrent enabled="false"
Hi, Here is my problem: - I am using Visual Studio 2013 with Update 4 on a Windows 7 SP 1 x64 machine - I have this simple Windows Forms application whose source code is given below (Target Framework =...
View Article