Unmanaged refers to Windows code that is independent of the Common Language Runtime(CLR). COM components, ActiveX components, and Win32 API functions are examples of unmanaged code.
Questions tagged [unmanaged]
1488 questions
14
votes
3 answers
Swift (iOS 8 SDK) Convert Unmanaged to ABMultiValueRef
I need to convert the return value of this function from the AddressBook framework:
ABRecordCopyValue(nil, kABPersonPhoneProperty)
to a value of type ABMultiValueRef
This function is currently marked as this:
func ABRecordCopyValue(record:…

Vandad Nahavandipoor
- 1,369
- 8
- 15
14
votes
4 answers
P/Invoke to dynamically loaded library on Mono
I'm writing a cross-platform .NET library that uses some unmanaged code. In the static constructor of my class, the platform is detected and the appropriate unmanaged library is extracted from an embedded resource and saved to a temp directory,…

Gordon Leigh
- 1,263
- 2
- 11
- 23
14
votes
1 answer
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;
int y;
};
public ref class Managed
{
int one;
Unmanaged two; //error C4368
};
I do not understand why though.…

sebf
- 2,831
- 5
- 32
- 50
13
votes
1 answer
How to find what is in unmanaged memory in Dump by WinDBG
I run for Dump File in WinDbg command
!address -summary
I results are something like this
Usage Summary RgnCount Total Size %ofBusy %ofTota
Free 3739 7ff5`dbbae000 ( 127.960 Tb) 99.97%
…

justromagod
- 933
- 9
- 20
13
votes
3 answers
How to serialize byte array to XML using XmlSerializer in C#?
Say we have a struct that it's data is provided by un-managed byte array using Marshal.PtrToStructure.
The C# struct layout:
[StructLayout(LayoutKind.Sequential, Size = 128, CharSet = CharSet.Ansi, Pack = 1)]
public struct MNG_Y_Params
{
public…

Ilan Huberman
- 406
- 1
- 3
- 15
13
votes
2 answers
Abort call to unmanaged DLL
I have an unmanaged DLL with a function that can run for a long time if the input parameter is a large value, sometimes that is desirable but not always.
How can I in c# call this function so that I can abort it when needed?
So far I have tried to…

hultqvist
- 17,451
- 15
- 64
- 101
12
votes
2 answers
How to step into unmanaged C++ library from my C++/CLI code
I have the following three projects in my solution:
1. C# library
2. C++/CLI managed code
3. C++ unmanaged code
I did check "Enable Unmanaged Code Debugging" in my C# project, and built both C++ projects in Debug/Win32. However, I cannot step into…

Arne Lund
- 2,366
- 3
- 26
- 39
12
votes
4 answers
What is an un/managed DLL? What is un/managed code?
Could someone please explain to me what an un/managed DLL is? And what is un/managed code?

Alex
- 7,432
- 20
- 75
- 118
12
votes
2 answers
C# unmanaged dll exporting (how it works)
I have found libraries that would export managed code as unmanaged so you can use it by unmanaged languages like C/C++. But I did not find anything that would explain how it's done (which is what I'm more interested in)
I'm looking for information,…

user3761832
- 563
- 2
- 7
- 18
12
votes
2 answers
Where does DLLImport look for unmanaged DLLs?
A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of its dependencies in the bin folder?

Mark Holtman
- 668
- 6
- 10
12
votes
3 answers
Swift - Checking unmanaged address book single value property for nil
I'm relative new to iOS-Development and swift. But up to this point I was always able to help myself by some research on stackoverflow and several documentations and tutorials.
However, there is a problem I couldn't find any solution yet.
I want to…

Rob
- 123
- 1
- 6
12
votes
2 answers
dealing with an unmanaged dll with a memory leak
I have a c# application that depends on a third-party unmanaged assembly to access certain hardware.
The unmanaged code has a memory leak that will increase the memory consumption by ~10mb after each access. The problem is known; no bugfix is…

HugoRune
- 13,157
- 7
- 69
- 144
12
votes
8 answers
How do I find out if a .NET assembly contains unmanaged code?
.NET assemblies that contain a mixture of managed and unmanaged code cannot be ILMerged with other assemblies.
How can I verify if a given .NET assembly contains purely managed code, or a mix of managed and unmanaged code?

Daniel Fortunov
- 43,309
- 26
- 81
- 106
12
votes
6 answers
Pinning an updateble struct before passing to unmanaged code?
I using some old API and need to pass the a pointer of a struct to unmanaged code that runs asynchronous.
In other words, after i passing the struct pointer to the unmanaged code, the unmanaged code copies the pointer and returns immediately. The…

DxCK
- 4,402
- 7
- 50
- 89
12
votes
3 answers
How to get list of functions inside a DLL (managed and unmanaged)?
So I play around a DLL (UnityEditor.dll) I wanna to get a list of all functions inside of this managed DLL which are unmanaged (dll is probably composed from a native C++ (with statically compiled libaries if such were used) core and managed C++…

myWallJSON
- 9,110
- 22
- 78
- 149