Questions tagged [managed]

Managed refers to code that requires and will only execute under the control of a Common Language Runtime (CLR). Any code written in C# or Visual Basic .NET is managed code.

890 questions
3
votes
4 answers

What can make a .NET app freeze the computer?

I know this is probably the canonical "It depends..." question but I'd appreciate any pointers as to where to start looking. I have a client/server app talking over ethernet. In one computer I run the server and a client and on another just the…
Niklas Winde
  • 1,761
  • 3
  • 23
  • 33
3
votes
1 answer

Why does my multithreaded C++ .NET application only crash when executed outside of visual studios?

I have created a very simple C++ .NET application using both managed and unmanaged code to replicate my problem. When the user clicks a button a new thread should spawn and do some time-consuming tasks while calling back to my main thread with…
3
votes
1 answer

managed array of pointers in c#

I have a trouble creating managed array of pointers. I've tried public unsafe class Car { public int speed; public Car() { speed = 0; } public Car(int speed) { this.speed = speed; } } class Program { …
Nikita
  • 35
  • 2
3
votes
1 answer

Calling a C# function from unmanaged c++ (via a managed wrapper)

I have C++ source & headers for a set of libraries which I need to call from a C# application. I've created a managed C++ wrapper around the functions I need and am able to call them from C# marshalling the data backwards and forwards. Now the hard…
Richard Adams
  • 591
  • 1
  • 9
  • 23
3
votes
1 answer

How compiler knows whether the running code is Managed or UnManaged in .NET framework

When reading about the basics of .NET like Managed and Unmanaged code, the code which runs under CLR and developed in .NET framework is managed while unmanaged does not run under CLR and developed outside the .NET framework. Moreover, thinking and…
user7030548
3
votes
1 answer

Importing native c++ class into CLI project

I am in the process of creating a CLI project to wrap around an existing native c++ project (two separate projects in the same solution file). I'd like to include a pointer to a native class as a member in a managed class. From the documentation…
John
  • 1,167
  • 1
  • 16
  • 33
3
votes
3 answers

Managed vs Unmanaged

What are your thoughts about them? Sometimes I have to write unmanaged code at work, but with large scale (games) projects, it just becomes way more time-consuming and complicated, which is solved by throwing more people at it. Do you think managed…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
3
votes
2 answers

Managed code advantages

Possible Duplicate: Managed and unmanaged code in .NET Hi, If I am right, then code in my app that runs under CLR (all code written the standard way) is managed code. But except for GC, what other advantages there are? I would like to know the…
Mocco
  • 1,183
  • 2
  • 12
  • 25
3
votes
1 answer

How to merge unmanaged DLLs and images with managed DLL?

I want to merge unmanaged DLLs and image files with managed DLL. How I can do it? Is it possible?
MastAvalons
  • 1,150
  • 1
  • 14
  • 23
3
votes
1 answer

Oracle Managed Connection throws The type initializer for 'OracleInternal.Common.ProviderConfig exception

oracle.manageddataaccess.client throws exception when try to create the connection from OWIN stand alone web api application. return new OracleConnection( new OracleConnectionStringBuilder() { …
Jyothish
  • 541
  • 2
  • 5
  • 25
3
votes
2 answers

Subscribing to windows messages through unmanaged c++ dll from c# net core

I am trying to subscribe to windows message events/messaging system from c# net core through unamanged c++ dll using pinvoke. Issues I am having. Getting the handle for my process or creating an empty window (does .net even support that). var hwnd…
Aistis Taraskevicius
  • 781
  • 2
  • 10
  • 31
3
votes
4 answers

unmanaged/managed interop - trouble passing int[]

I am working on my phd in chemistry and for that reason I need to write a software application to help me with the imaging of samples under a microscope. This microscope is fitted with an x-y-z nanopositioning stage. The stage is controlled using an…
Kris Janssen
3
votes
1 answer

Performance factors in networking

Sometimes I just go around in circles wondering whether adding a thread queue with a single thread querying and updating a database server at the cost of a worker thread processing user requests would be efficient resources usage or not, and how…
SimpleButPerfect
  • 1,529
  • 2
  • 11
  • 20
3
votes
1 answer

Startup Error when trying to create a new Visual Studio 2010 add in

I'm using Visual Studio 2010 to create an add-in. Using the wizard, I went through the dialog and selected fairly standard options (target 4.0, load in startup). The project was then generated, but when I try to debug the add-in, a new instance of…
soslo
  • 276
  • 2
  • 8
3
votes
1 answer

Following Introduction to Building Managed ODP.NET I get this error "Unrecognized configuration section oracle.manageddataaccess.client."

Following this tutorial, Introduction to Building ODP.NET, Managed Driver Applications In the topic "Connect using the TNS_ADMIN Property", when I run I get "Unrecognized configuration section oracle.manageddataaccess.client" error.