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
6
votes
1 answer
How to hook a method from ANY thread within a process using unmanaged EasyHook?
I've been having some issues getting my method hooks to work. I can get the hook to work if "I" call the method that's being hooked. But when it occurs naturally during the processes operation, it doesn't get hooked. My problem is probably…

Ultratrunks
- 2,464
- 5
- 28
- 48
5
votes
1 answer
Unable to delete managed dll after using it in an asp.net web application
I am using NHunspell in an ASP.net web application. NHunspell wraps either Hunspellx86.dll or Hunspellx64.dll, both of which are unmanaged dlls.
The problem is this: when I dispose of my NHunspell object (which calls FreeLibrary from kernel32.dll),…

Geoff Huston
- 363
- 2
- 6
5
votes
2 answers
Relative path to unmanaged DLL
Possible Duplicate:
Specify the search path for DllImport in .NET
I have an unmanaged DLL. For clearance, its a C++ dll that I want to use in my c# code.
The problem is that its a windows app and user can install it in any directory of their…

Deepak Kumar
- 672
- 4
- 15
- 31
5
votes
2 answers
Can nunit-console list all test names in a test fixture?
I'd like to report them before they're run, and have the option to run individual tests through shell scripts without managing categories. We have some unmanaged code which can leave the process in a bad state, and sometimes are happy to run each…

Sebastian Good
- 6,310
- 2
- 33
- 57
5
votes
1 answer
Access violation exception at 'Marshal.StructureToPtr' in Windows 7 + .NET 4.0 (Windows XP + .NET 3.5 works fine)
Here is my code:
internal void Show()
{
if (Parent == null)
throw new NullReferenceException();
EDITBALLOONTIP ebt = new EDITBALLOONTIP();
ebt.cbStruct = Marshal.SizeOf(ebt);
ebt.pszText = Text;
ebt.pszTitle = Caption;
…

Coffka
- 749
- 1
- 8
- 23
5
votes
1 answer
Calling unmanaged C/C++ DLL functions from SQL Server 2008
I have a vast library of C/C++ functions, which needs to be called from SQL Server 2008.
I have written a C# adapter class which loads these functions from Win32 DLL with DllImport and exposes them to .Net code. This works perfectly fine in most…

Ramzay
- 181
- 4
- 12
5
votes
2 answers
Unmanaged callback causing stack to overflow
I am working with an unmanaged resource with C#. The resource exposes a callback that can be setup for certain events that could happen within the hardware. To gain access to the unmanaged functions I do the…

Lux782
- 451
- 1
- 4
- 5
5
votes
6 answers
Using DLR from Unmanaged Code
Is it possible to call managed code, specifically IronRuby or IronPython from unamanaged code such as C++ or Delphi?
For example, we have an application written in Delphi that is being moved to C#.NET We'd like to provide Ruby or Python scripting…

Bob Wintemberg
- 3,212
- 6
- 34
- 44
5
votes
1 answer
.NET System::String to UTF8-bytes stored in char*
I am wrapping some unmanaged C++ code inside a .NET project. For this I need to convert System::String to UTF8-bytes stored in char*.
I am unsure if this is the best or even a correct way to do this and I'd appreciate if someone could take a look…

OG Dude
- 936
- 2
- 12
- 22
5
votes
1 answer
How can I pass a pointer from C# to an unmanaged DLL?
I have an unmanaged DLL with a function that takes a pointer as an argument. How do I pass a pointer from C# without being 'unsafe'?
Here's some example code:
[DllImport(@"Bird.dll")]
private static extern bool foo(ushort *comport);
The…

Tom Wright
- 11,278
- 15
- 74
- 148
5
votes
1 answer
How do I strongly name an Unmanaged C++ Dll?
I'm working on a C# application which uses the EasyHook library for DLL Injection. EasyHook requires that any application using it be strongly named. In order to strongly name the application I need to make sure that all the libraries I use are…

Luke Belbina
- 5,708
- 12
- 52
- 75
5
votes
3 answers
Sync video play over network
I have made a media player that plays basically anything that's scheduled to it via a text file. The player can also play the exact same clip on multiple machines(PC's). The problem is the syncing. The same video starts playing on each of the…

Nemesis
- 109
- 1
- 1
- 8
5
votes
1 answer
A generic construct requires that the type 'Cell<'T>' is an unmanaged type
Why I cannot have generic unmanaged struct in F#? May be Cell<'T when 'T: unmanaged> is not unmanaged, then how I can fix that?
type FloatCell =
struct
val x: float
val y: nativeptr
end
…

Dzmitry Lahoda
- 939
- 1
- 13
- 34
5
votes
2 answers
How can I embed an unmanaged C++ form into a .NET application?
I have been able to successfully wrap my unmanaged Borland C++ dll, and launch it's forms from a C# .NET 4.0 application. Is it possible to embed a form from the dll directly into a .NET application?
To clarify, the original form is being used as an…

Everett
- 1,077
- 5
- 23
- 42
5
votes
1 answer
Windows service exception not handled
i have regular C# service based on class ServiceBase. This service loads on startup c++ dynamic link library. Some times it happens that service crash in unmanaged code. Unfortunately Event viewer gives only very brief description of this. This is…

truthseeker
- 1,220
- 4
- 25
- 58