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

cant give reference to System.runtime.dll

if i give C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades path the studio shows yellow to and says reference is missing .if i give...

View Article


Common Language Runtime error after upgradation to .NET 4.6.2

Very recently, our application was upgraded from .NET FW 4.5.2 to .NET FW 4.6.2. The application is a web application with 2 solutions, the front end solution which is hosted on IIS and the Services...

View Article


How to fix KB2640103 bug from .Net Framework 4.0

Our application crashes on Window 7, window 8.1, window 10 and windows server 2012 R2 due to the known .net Framework 4.0 bug (KB2640103), error description:...

View Article

Pass struct array from COM object to C# with SAFEARRAY

 Hi All, Here's my problem: - I have a com object which does some processing, and the results must be saved in a SAFEARRAY; - there is another module written in c# which needs to pick up that vector...

View Article

Windows Server 2012 having extended support for CLR 2.0, but are there any...

Windows Server 2012 have extended support for .Net application build in 2.0 or 3.5 with CLR 2.0 up to beginning of 2023.Are there any risk involve in running .Net application build in .Net 2.0 or 3.5...

View Article


use a c++ struct in c#

Hello,I'm trying to call a c++ function in my c# application. I've been able to call the function using dllImport. But one of the parameters is a c++ struct :struct Item { struct EType { enum Type {...

View Article

Limit ThreadPool.SetMaxThreads to a number smaller than the number of...

Hi,The documentation of ThreadPool.SetMaxThreads mention: the maximum number of worker threads or I/O completion threads cannot be set to a number smaller than the number of processors on the...

View Article

Custom Control Serialization issue

I have a custom control which is inheriting "System.Windows.Controls.ContentControl". When i am trying to serialize my control it throws below exception.my control:[Serializable()]    public class...

View Article


Variable names are changing case during runtime

First, some background.  Running Visual Studio Professional 2015.  This project has a mix of VB and C# code.  The code where the issue takes place is a VB controller.  This code has existed and...

View Article


How to filter managed threads that are unsafe or during JIT compilation or...

Hi,I am writing a  sampling profiler, but I get some trouble.I make a profiler for iis. When the site start and start sampling at the same time, the site will be very very slow , and then  about 2~3...

View Article

C# Combo Box Auto Suggestion code gives error 'current thread must be set to...

public void lists() { foreach (string s in tracker.projectsCollection) { comboBox1.Items.Add(s); } textCase.AutoCompleteCustomSource = tracker.namesCollection; textCase.AutoCompleteSource =...

View Article

How can I access the CLR stress log in windbg? - Error "SOS stress log not in...

This is essentially the same query as that raised by Rizwan Sharif in 2012 (Question: SOS.dll GC History commands). The difference is that all the necessary registry settings have been applied (as...

View Article

Debugging Azure App Service w/WinDbg - can't load clr.dll

I have a full minidump from an Azure App Service.  It comes with the .dmp file, sos.dll and mscordacwks.dll.I have WinDbg - x86 is the version that can open this dump file.  I then use .load...

View Article


Compressing folder in Windows application

 Hi, Is it possible to compress (zip) a folder in .Net without using any third party tools ? Thanks, Raju S

View Article

How to implement interface of C# use COM of native C++?

I'm using .Net Core in cross platform, include windows and linux. I can't use ATL.Iembed the.Net core to myexecutableprogram.I hope expose c++ class instance pointer to .Net Core(C#), and convert to...

View Article


versions and assemblies

hiI've got some C++/CLI Projects. One I've done in Visual Studio 2010. It was targetet to v4.0 and was using Microsoft.Build.dll (version 4). That works fine. (we used it to build stuff and things like...

View Article

Service Referance Debug Release Differ

Hey,      I am in need of being able to set a service reference however i need it to have a different address for debug and release as i don't want to accidentally send something up to the released...

View Article


Multicorejit vs Forcejit in .net apps

Hi,HiI have asp.net project and increase the warmup performance I use System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod(method.MethodHandle); to forcejit.But as I read after .net 4.5...

View Article

Memory leaks when using a C# COM interop class from C++?

I am trying to use a COM object written in C# from C++ and I don't understand why the memory becomes greater and greater. In C#, we have a very simple COM interface : public enum COMObjectErrorCodes {...

View Article

Faulting module name: clr.dll" error message when you run a Microsoft...

The CLR.dll is crashing and my IIS pool is getting restarted. The .net version we have 4.6.2.Can someone help.

View Article
Browsing all 1710 articles
Browse latest View live


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