[Interop] Call into .net/managed code from native/unmanaged code

Introduction I’ve got a native console application which would like to call into a piece of managed code written in C#. This is the how the C# function “Sum” looks like… My solution explorer looks as follows… CSharpModule is a CSharp library while TestManagedCall is a native/unmanaged project. My requirement is as follows: call Class1.Sum […]
Continue reading…

 

Interesting read: Microsoft Intermediate Language (MSIL) instructions

Taken from MSDN: http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes_fields(v=vs.120).aspx  AddAdds two values and pushes the result onto the evaluation stack. Add_OvfAdds two integers, performs an overflow check, and pushes the result onto the evaluation stack. Add_Ovf_UnAdds two unsigned integer values, performs an overflow check, and pushes the result onto the evaluation stack. AndComputes the bitwise AND of two values and […]
Continue reading…

 

Debugging/Comparing Managed or .net memory dumps using Visual Studio 2013

Visual Studio 2013 comes with a new feature called “Debug Managed Memory” this feature also allows to compare managed memory usage across two dumps.  Read on… This is how you would open a .net 4.5 memory dump in Visual Studio… So for the purpose of this blog I’ve created memory dumps of a managed application […]
Continue reading…

 

[Video] What’s cool in Visual Studio 2013 Solution Explorer

A video presentation on what’s new and cool in Visual Studio 2013 Solution Explorer… I’ll follow up this presentation with some more presentation on what’s some of the cool things in Visual Studio 2013 just to speed up anyone who’s hopping onto the Visual Studio 2013 wagon.
Continue reading…