Questions tagged [managed-code]

Term defined by Microsoft designing code executed under the management of a Common Language Runtime virtual machine.

58 questions
0
votes
1 answer

How i can debug managed code when kernel debugger is enabled on my system?

I'm a windows kernel-mode (Driver) developer and for this purpose(Develop drivers and debug that ) i enabled kernel debugger on my system. But when i want to debug a managed-code (A C# project) in my system, using Visual Studio debugger i receive…
Behrooz
  • 684
  • 1
  • 9
  • 19
0
votes
2 answers

WinDbg -- debugging mixed x64 managed/unmanaged code

I'm using WinDbg (Native x64 -- NOT Itanium) to debug an x64 (unmanaged) application that loads both managed an unmanaged DLLs. I'm trying to set a breakpoint in one of the unmanaged DLLs. When the breakpoint is hit and I step through, the…
0
votes
1 answer

Call native Delphi code from C#

Are there any best practices to call native C++ or Delphi Dlls from C# (ASP.NET)? Is invoking or a COM interop the best way to access those Dlls?
Konrad
  • 4,329
  • 10
  • 54
  • 88
0
votes
1 answer

Deploy unsafe assembly to production in SQL Server 2005

I need to deploy an unsafe UDF assembly to a SQL Server 2005. I'm using C# and Visual Studio 2008. I need to know what are the steps that I need to take to allow smooth deployment of unsafe assembly to the client's machine - the client's DBA is a…
0
votes
6 answers

Are there any managed programming languages that compile to machine code?

Managed languages being the ones that handle memory cleanup for you. EDIT I'm not talking about garbage collection. I was just interested in knowing about languages that would free() memory for me automatically, and still compile down to machine…
Luca Matteis
  • 29,161
  • 19
  • 114
  • 169
0
votes
1 answer

How to use code from native dll non-statically in vb.net?

My question is more on the concept and less on the actual code. I have an app in vb.net. I want to port a few classes to native c++ code (not cli) for various reasons. What I want to do is to be able to instantiate and use these classes, like i do…
johnjohn
  • 4,221
  • 7
  • 36
  • 46
-1
votes
1 answer

How to run managed code on different version assemby

I'm working with one application that that has and C# API. This program has different versions of it. But the api stays the same through its versions. So i have written a managed code to one of its versions, and now i want to run the same code at…
Paulius
  • 11
  • 1
-1
votes
1 answer

How can I design a wrapper class for consuming a C++ application to use a C# DLL?

I followed the following tutorial, https://www.red-gate.com/simple-talk/dotnet/net-development/creating-ccli-wrapper/, to create an instance of a C++ static library from C# .NET framework console application using a wrapper class. In this tutorial,…
-1
votes
1 answer

Creating an object of public ref class using new and gcnew

I have a class declared in MyRefClass.h public ref class MyRefClass{ .... .... }; What is the difference between where/how the three objects are allocated and managed? // This is allocated in **C++/CLI**. MyRefClass ^mrc = gcnew…
abhi4eternity
  • 448
  • 3
  • 8
  • 19
-1
votes
2 answers

Using keyword and Managed\UnManaged code

C# keyword Using implements Idisposable which provides a mechanism for releasing unmanaged resources. Now i was going through this code string txt = String.Empty; using (StreamReader sr = new StreamReader(filename)) { txt =…
Lijin Durairaj
  • 4,910
  • 15
  • 52
  • 85
-2
votes
1 answer

passing BSTR string as a perimeter between managed and unmanaged code (COM interop)

While working on com interop ,i followed the tutorial on this link.The code runs fine as i have done some modification depending on my requirement but the problem comes while dealing with the string.I am using BSTR string here as a perimeter…
-3
votes
2 answers

is managed code really necessary

I'm just wondering what are the really advantages of managed langage over native code portability: C#/Jave need to have a VM implementation for each plateforms, c++ has to have a compiler garbage collector: we can have a thread in c++ which check…
Guillaume Paris
  • 10,303
  • 14
  • 70
  • 145
-3
votes
1 answer

How does garbage collector decodes that a reference type object is of no use?

CLR garbage collector actively goes through all objects that have been created and works out if they are being used. But, how does garbage collector decide which object are to be killed and which are in use? I understand the concept of assigning a…
Kunjan
  • 1
  • 3
1 2 3
4