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.
Questions tagged [managed]
890 questions
29
votes
7 answers
ODP.NET Oracle.ManagedDataAcess random ORA-12570 errors
I'm trying to migrate to Oracle.ManagedDataAcess from unmanaged version and receiving randoms ORA-12570 TNS:packet reader failure.
I don't know why this error starts, but once it starts, every subsequent request gives the same error for about 10-30…

Edgar
- 1,097
- 1
- 15
- 25
28
votes
5 answers
What exactly happens during a "managed-to-native transition"?
I understand that the CLR needs to do marshaling in some cases, but let's say I have:
using System.Runtime.InteropServices;
using System.Security;
[SuppressUnmanagedCodeSecurity]
static class Program
{
[DllImport("kernel32.dll", SetLastError…

user541686
- 205,094
- 128
- 528
- 886
28
votes
7 answers
How do i prevent my code from being stolen?
What happens exactly when I launch a .NET exe? I know that C# is compiled to IL code and I think the generated exe file just a launcher that starts the runtime and passes the IL code to it. But how? And how complex process is it?
IL code is embedded…

Calmarius
- 18,570
- 18
- 110
- 157
26
votes
2 answers
Difference between managed and unmanaged in-app product android?
I went through the developer forum to know the difference between managed an unmanaged in-app products. they are saying that "Items that are unmanaged do not have their transaction information stored on Android Market, which means you cannot query…

Andro Dev
- 395
- 1
- 4
- 14
24
votes
4 answers
Howto implement callback interface from unmanaged DLL to .net app?
in my next project I want to implement a GUI for already existing code in C++.
My plan is to wrap the C++ part in a DLL and to implement the GUI in C#. My problem is that I don't know how to implement a callback from the unmanaged DLL into the…

chrmue
- 1,552
- 2
- 18
- 35
23
votes
6 answers
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) and why?

Xaqron
- 29,931
- 42
- 140
- 205
23
votes
3 answers
Is this DLL managed or unmanaged?
I hold before you a DLL. Using only the Win32 SDK, can you tell me if this DLL is a .NET assembly?
Why? Our application loads plugins in the form of DLLs. We are trying to extend the definition of these plugins to allow for .NET assemblies but the…

Charles
- 2,642
- 3
- 33
- 53
21
votes
4 answers
Changes not allowed when unmanaged debugging is enabled?
I get the error
changes not allowed when unmanaged debugging is enabled
Actually I get the below message but Google doesn't return many results
changes are not allowed when unmanaged debugging is enabled
What does this mean? How do I fix it?…
user34537
20
votes
2 answers
What is the difference between managed-schema and schema.xml
I have below questions in solr 6.
What is the main difference between managed-schema and schema.xml
What are the benefits and disadvantages while using managed-schema and schema.xml(classic).
And could you please help me in understanding what is…

Shafs Jan
- 400
- 1
- 3
- 13
19
votes
5 answers
Is it possible to share an enum declaration between C# and unmanaged C++?
Is there a way to share an enum definition between native (unmanaged) C++ and (managed) C#?
I have the following enum used in completely unmanaged code:
enum MyEnum { myVal1, myVal2 };
Our application sometimes uses a managed component. That C#…

sean e
- 11,792
- 3
- 44
- 56
18
votes
2 answers
Any CPU not available in C++/C# solution
I have a solution that contains C# and managed C++ projects.
It compiles in the solution platform x64 and x86. Since it is managed C++ I wanted to create a 'Any CPU' solution and get rid of the old ones.
I changed the C++ project linker settings to…

Frank Kaaijk
- 293
- 1
- 3
- 12
17
votes
2 answers
@ManagedProperty(value = "#{param.id}") in a non-request Scope Bean
I need to pass a parameter (POST) to a @managedBean, I used managed properties like this:
@ManagedProperty(value = "#{param.id}")
private int id;
And the scope of the Bean is ViewScope
I end up with this error:
Unable to create managed bean…

ehsun7b
- 4,796
- 14
- 59
- 98
17
votes
5 answers
Reducing the size of minidumps of managed programs while keeping some heap information?
With the dump debugging support in .NET 4.0 we are looking into automatically (after asking the user of course :) creating minidumps of C# program crashes to upload them to our issue tracking system (so that the minidumps can assist in resolving the…

Ziphnor
- 1,022
- 1
- 8
- 17
16
votes
2 answers
What's the difference between a non-unmanaged type and a managed type?
When I wrote the following snippet for experimenting purposes, it raised the hover-error (see screenshot):
Cannot declare pointer to non-unmanaged type 'dynamic'
The snippet:
dynamic* pointerToDynamic = &fields;
While the code is clearly not…

Abel
- 56,041
- 24
- 146
- 247
16
votes
4 answers
JSF Managed Bean auto-create?
Is it possible to have a JSF managed bean be automatically created?
For example I have several session scoped beans. Sometimes it becomes necessary to access these instances in code (rather than just in JSF) this is done by:
PageBean pageBean =…

rat
- 2,544
- 5
- 21
- 19