The Common Language Runtime (CLR) is a core component of Microsoft's .NET initiative. It is Microsoft's implementation of the Common Language Infrastructure (CLI) standard, which defines an execution environment for program code. In the CLR, code is expressed in a form of bytecode called the Common ...
0
votes
1answer
17 views
Visual Studio's Memory window: Inspecting a reference instead of the referenced value?
When I inspect a string variable text using Visual Studio's Memory window, I get to see its value:
Out of curiosity, is there a way to inspect (also in the Memory window) the location where that ...
0
votes
0answers
16 views
How do we notify Common Language Runtime that DLL has been updated
We have this issue that we can't seem to find the answer to, and figured with the sharp minds at this community here, someone might know the answer to.
The dilemma is this: we have a user install ...
4
votes
1answer
57 views
HTML Decode without System.Web
I am working on a CLR Table-Valued function for SQL Server 2008 R2. I need to HTMLDecode a string at one point, but this is problematic b/c that relies on System.Web, which is not a support assembly ...
6
votes
1answer
35 views
How can I know which Runtime Host is currently run my code?
As Microsoft Documentation declare Runtime Hosts that .NET have more than one Runtime Hosts to support and execute the code of our application, my question is How Can I know which Runtime Hosts of the ...
0
votes
0answers
14 views
What is the difference between Managed modules and Native modules in IIS?
http://www.iis.net/learn/get-started/introduction-to-iis/introduction-to-iis-architecture#Components
mentions that managed modules can be extended.
But can someone elaborate on this further? Native ...
0
votes
2answers
41 views
How do managed applications run [closed]
I am learning .NET framework programming model.
When a managed exe is run(so no machine code in it),how does the CLR(mscorlib.dll) take over and do JIT compilation,or who calls the CLR or is it ...
0
votes
0answers
28 views
SQL Server, adding CLR assembly
I'm trying to add an assembly to my sql server 2012 database. When I execute the script to add assembly, I get this error. By the way I am using Newtonsoft.Json framework, and I added its dll to my ...
-2
votes
2answers
54 views
CLR: Convert a (C#) string into a null-terminated array of char (C)?
I've created a CLR project and now I need to convert a C# textBox.Text property into a C-ansi characters array (null-terminated). I need to pass the text to a C function, something like this:
...
0
votes
1answer
40 views
SQL Server Function Call CLR to sleep
For testing I need to artificially create a slow SQL statement.
I have managed to achieve this on Oracle/Java (details below), but am struggling to achieve the same in T-SQL/VB.Net/SQLServer.
The ...
3
votes
2answers
83 views
Impose a Memory Limit on the CLR
I'm trying to test the error handling of my code under limited memory situations.
I'm also keen to see how the performance of my code is affected in low memory situations where perhaps the GC has to ...
5
votes
4answers
86 views
What does newing an empty struct do in C#?
If you have declared a struct:
struct EmptyResult
{
}
What is the result of creating a variable of type EmptyResult in an instance?
public Foo()
{
EmptyResult result;
}
Would you expect an ...
1
vote
1answer
50 views
How to debug exception not handled by CLR
I am developing a .NET application which is crashing at seemingly random times. It has references to an unmanaged dll which I suspect is throwing an exception which is unhandled. When the application ...
0
votes
1answer
68 views
Why is GC getting triggered in this situation?
I am creating an array with large number of items (number of items > 2500). The array holds the object with the structure depicted in the program below.
I observed that the "%Time spend in GC" for ...
1
vote
3answers
70 views
Why does C# consider a previously non-null member of an instance as null after an upcast?
While developing a class library for communicating with an external database over JSON, an interesting problem arose where an upcast of an object instance resulted in one of its previously non-null ...
2
votes
1answer
90 views
How c# differentiates between instance methods and virtual methods
So basically I want to understand what are the general steps C# compiler takes to determine whether the method that is being called is nonvirtual instance method or virtual method.
Confusion comes ...