Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Browsing all 1710 articles
Browse latest View live

How to block and unblock the ctrl-c singal in my windows application?

Hi,I am having a use case where I want to block the ctrl-c signal generated by console application for doing some processing and then after the processing is done I would like to continue with the...

View Article


Running Profiler inside certain IIS ASP.NET 4.0 apps results in error...

I have a IL rewriting profiler which uses the profiling API to intercept JITs and writes prologue\epilogues calling a supporting C# assembly(HP.Diagnostics).We have been running our product(HP...

View Article


PerformanceCounter somehow locks my dll...

Hi,I use this code from a Windows service:using (var c = new PerformanceCounter("Process", Working Set", instance, true)) return c.RawValue;Which Works, no problems. The problems come when I shutdown...

View Article

Cryptography_CSP_NoPrivateKey error

Hello, I'm trying to call a webservice with WSE 2.0 (sp3) in a code implemented in a NT service (developed in .net). To do this, I'm adding a certificate token and creating a sign element, but when I...

View Article

C++ Interop: embedding an array in a UDT

I have an application that involves a lot of communication between managed (C#) and unmanaged (C++) code. We are using Visual Studio 2005 (!), and we use the interop assembly generated automatically by...

View Article


Digital Signature Algorithm with Secure Hash Algorithm (DSAwithSHA1)

I have seen lot of codes but in that codes, no role of public key.How to implement Digital Signature Algorithm with Secure Hash Algorithm (DSAwithSHA1) for verifying the digital signature using public...

View Article

Image may be NSFW.
Clik here to view.

Unknown error when using .NET 4.0 above with unmanaged dll

I have an application that using a 3rd party library, and it just works fine in .NET 3.5.The function of the unmanaged library accepting a byte array as one of the parameter.However, we have planned to...

View Article

string Array performance

In a method I am using following code.       string[] Array1 =newstring[] {"Orange","Mango","welcome","power","Street","Visual"};       string[] Array2 =newstring[] {"Orange","Mango","welcome"};...

View Article


Base64String generated result with incorrect size

I use Rfc2898DeriveBytes to hash password for asp.net login public void HashPassword(string password, string salt = null) { byte[] saltB = (salt == null) ? GenSalt() : Convert.FromBase64String(salt);...

View Article


Why we should install custom cultures on local machine?

In .NET there are some ready-made Cultures and user allowed to create custom cultures. My question is why we should install or uninstall custom cultures in user local machine? What is the reason that...

View Article

Stack overflow exception in mscorlib due to multiple assembly versions of a dll

Hi, I have 2 class libraries in C# targeting .net framework 4.0. Both class libraries are referencing a dll named ANTLR3.Runtime.dll. Project A uses a reference of ANTLR3.Runtime version 1.0 and...

View Article

Failing to Call COM exposed class

BackgroundI have a powerbuilder program attempting to call a C# class that is exposed as com visible. The C# class is compiled at .Net 2.0, and is being called from PB 11.5.1.C# Com Visible attributes...

View Article

SerialPort.ReadByte() from USB "virtual port"

Using win8, x64. .NET 4.5 and "ST-Lab USB Serial Cable" with Prolific driver ser2pl64.sys version 3.4.48.272.I open a port and just go directly into a read loop with port.ReadByte(). If the buffer is...

View Article


ATL/CLI dll loading issue

I have a COM/ATL DLL (Built in VS2012) that is built with /cli, and references a .NET assemly to do much of its internal work. The problem I am having is registering the DLL - it won't register unless...

View Article

COM+ activation failed because the activation could not be completed in the...

Hi,we are facing issue com+ time out more frequent with dot net framework 4.Earlier our application using dot net framework 2.0 . No com+ time out issue being reported.ya we did some code changes also...

View Article


Process is not closed after Main function has terminated

Hello all, In what cases can a .NET application stay in the processlist after its Main function has terminated? How to trackdown what is causing this? I am writing an addon for SAP Business One, and it...

View Article

C# callback crashes in c++

Hi, In c++ I am calling C# com dll function which in turns calls call backs. The c# com dll is retrieving Lync client presence.If there is any change in lync client presence, the c# callbacks will be...

View Article


COM Interop with VBScript on 64 Bit Windows 7/ Server 2008

We are running into an issue with accessing a .NET DLL, compiled AnyCPU, from VBScript via COM Interop.  We are using the standard %windir%\Microsoft.Net\framework\v4.0.30319\regasm command to create a...

View Article

[interop] native DLL only accessible from my C# project.

Hello In order to better protect the source code of some functions, I moved them from my C# project to a native C++ dll. The concerned functions are now declared as "extern "C" __declspec(dllexport)"...

View Article

Change path from c:\windows\temp

Is it possible to change the path that ASP.Net uses when compiling code from %SystemRoot%\Temp to another folder.I'm fairly sure the answer is going to be either no, or yes, but it's not supported, but...

View Article
Browsing all 1710 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>