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

Garbage collector causes Excel to crash

Hi,I have an application designed to target .NET 4.0. The application registers some classes to COM.I use these classes from Excel VBA.When I throw a COMException from the application, Excel crashes,...

View Article


XmlSerializers with addin outlook

I’m trying to create add-in for outlook and have issue with deserialization and antivirus program.I’ve noticed that when my add-in tried to deserialize any data, .NET framework created temporary dll in...

View Article


unsigned int32 is verifier-assignable-to enum A, but unbox.any throws...

Consider the following C# console application.using System; class Program { enum A { A42 = 42 } static void Main() { object obj = 42; Console.WriteLine(obj.GetType().Name); /* "Int32" */...

View Article

IL Rewrite works on x86 but fails on x64

Hello, I am trying to inject some code to System.Data dll so that i can log some of the DB calls made for my experiment purpose. Here is the original article http://www.dupuis.me/node/18I am attaching...

View Article

Image may be NSFW.
Clik here to view.

Why is there a threshold violation in running load test?

Hi,I am using VS2012 and I have setup my local machine under counter set. However, while running the load test I am getting threshold violations. What causes these violation and how can I prevent my...

View Article


Trying to understand solutions with multiple projects that target different...

I have a solution with 3 projects.  Two of the projects target .NET framework 4.0 and the other one targets .NET framework 3.5. The two that target .NET 4.0 have reports that get generated and exported...

View Article

Curiosity about Lazy version classic (manual) lazy

Lazy loading, a life's bread of many developers, and a valuable tool for operation management.THat being said there are a few ways to handle lazy loading, and with the advent of .Net 4.0 there is this...

View Article

CLR20r3 error in WinForms application

We're having an issue with one particular application on one particular server. We've got dozens of installations of this application that have worked for years, it's only one customer's server that...

View Article


How to configure Default AppDomain via Hosting Interfaces?

The problem is I want to confugure DAD (default AppDomain) when starting CLR Host in native process. I want to set AppBase and execute app.config file for DAD. In function CorBindToRuntimeEx  there is...

View Article


.Net Profiler - Getting the uncaught Error details and stack trace.

Hi,I am developing a .Net profiler using instrumentation by setting necessary event masks for the even callbacks and injecting my helper functions.I am able to get the call graphs and time taken of the...

View Article

Configure Evidence for the default AppDomain when launching from an unmanaged...

I have an unmanaged C++ app that makes calls into managed code libraries written in both C# and C++. One of the libraries uses classes from System.IO.Packaging and certain API's are throwing...

View Article

How do I assign an invoked method to a field in CodeDOM?

I have the following desired output: public partial class HomeClass { private UILabelDriver errorLabel; private UITextFieldDriver passwordText; private UIButtonDriver loginButton; private...

View Article

System.Net.Dns.GetHostName() returning dot

System.Net.Dns.GetHostName() is returning the dot character instead of the machine name.  I need it to return the machine name so that it matches up with what is in sql server.  Is there any way to...

View Article


The type initializer for '[Modulename]' threw an exception

I have a VB .NET program written in Visual Studio 2010.  It was developed and compiled on a Windows 7 PC.  It is compiled for Any CPU.  This program loads and runs on any Windows 8 PC but when we try...

View Article

Difference between Abstraction and Encapsulation (OOPS concept)

Hi All,What is difference between Abstraction and Encapsulation ()in details with example?There are lots of article on net related to this issue, but they are too confusing.Please help.Thanks, Sudarshan

View Article


MethodAccessException making ECall (FastAllocateString) via DynamicMethod

 I'm trying to call string.FastAllocateString directly from my code. (Actually, I'm trying to avoid unnecesary memory copies when creating a string from a char* - if there's a better way, I'd love to...

View Article

.net Framework Version History

Hi,I am looking for a definitive list of .net version numbers. For instance: 3.0.04506.2152 == .net 3.0 SP2.This page does a pretty good job of it but it's out of date. Is there anything available from...

View Article


PerfView: meaning of "Background JIT Blocking Reason" in JITstats

Does anyone know what Assembly Name or  None in column "Background JIT Blocking Reason" mean?I mean why was JIT used? Thank you.

View Article

Get Location of loaded assembly using .Net Profiling API

I am writing a profiler that uses the .NET Profiling API.I want to do some analysis on all the assemblies that are loaded by the profiled application. I can get the AssemblyID by using the...

View Article

App crashes on Server 2012, depending on how it's built.

We have an application compiled using Visual Studio 2010 using .net 4 which parses some data files and writes the data to SQL Server. It's currently using .net 4, but was originally .net 1.0 (or 1.1,...

View Article
Browsing all 1710 articles
Browse latest View live


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