Top "Unmanaged" questions

Unmanaged refers to Windows code that is independent of the Common Language Runtime(CLR).

C# deallocate memory referenced by IntPtr

I am using some unmanaged code that is returning pointers (IntPtr) to large image objects. I use the references but …

c# pointers unmanaged
How can I send a managed object to native function to use it?

How can I send a managed object to native function to use it? void managed_function() { Object^ obj = gcnew Object(); …

.net c++-cli unmanaged managed mixed-mode
Handling exception from unmanaged dll in C#

I have the following function written in C# public static string GetNominativeDeclension(string surnameNamePatronimic) { if(surnameNamePatronimic == null) throw new ArgumentNullException("…

c# dll unmanaged
No functions in C# DLL with RGiesecke.DllExport

I am trying to make a DLL in C# for use in a couple other languages. I found RGiesecke's DllExport …

c# dll unmanaged
Free unmanaged memory allocation from managed code

A .NET application calls C dll. The C code allocates memory for a char array and returns this array as …

.net memory-management unmanaged dllimport
Using DllImport to load unmanaged dll into managed application

In my project I have an unmanaged native C++ dll and a C# application. I am trying to import a …

c# c++ dllimport unmanaged dllnotfoundexception
Why can an unmanaged struct not be a member of a managed class?

I know in C++/CLI one cannot use unmanaged types when defining a managed class: public struct Unmanaged { int x; …

interop c++-cli unmanaged
Which one to use: Managed vs. NonManaged hashing algorithms

In a regular C# application which class to use for hashing: xxxManaged or xxx (i.e SHA1Managed vs SHA1) …

c# unmanaged hash managed
How to send a string by reference to an unmanaged C library that modifies that string?

I am new to the world of interacting with unmanaged libraries. I have an unmanaged C function that modifies a …

c# c unmanaged managed