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
2
votes
1 answer

JSF application scoped managed bean injection

I'm developping a web app, with jsf2,spring and hibernate. I have an "application scoped" managed bean (called "utilsJSF") with JSF util methods, such as: Reading properties files for getting a message from its key (using getBundle). Adding a…
choquero70
  • 4,470
  • 2
  • 28
  • 48
2
votes
0 answers

Breakpoint not getting hit in managed code

I am using Visual Studio 2010 & .NET Framework 3.5. In my solution, I have a C++ project and a C# project. The C++ code in the former project invokes the managed code in the latter via (reverse) COM Interop. Both the dlls would get loaded into an…
Kiran M N
  • 424
  • 1
  • 6
  • 15
2
votes
1 answer

Firing events from a unmanaged function

I am trying to fire an event from a unmanaged function using a pointer to managed object. I get the following error: error C3767: 'ShashiTest::test::OnShowResult::raise': candidate function(s) not accessible How ever I can call regular function…
coolshashi
  • 420
  • 1
  • 6
  • 19
2
votes
1 answer

Reading an array in unmanaged c++

I have a managed C++ class, with a method whose constructor signature is: tools_package_net::PackageInfo::PackageInfo(array^ bytes) Within the constructor I wish to call a method on an unmanaged class with the signature: bool…
Simon Parker
  • 1,656
  • 15
  • 37
2
votes
3 answers

Does managed code mean JIT or GC?

I've seen several explanations on what "managed" code means, and some target the idea of managed code being compiled to an intermediate language and JITed and others talk about GC and memory management. Which actually makes a language managed, or is…
2
votes
0 answers

VMMap v3.32 does not analyze Managed Heap on Windows 10 and Windows Server 2012 R2

Managed Heap tab is not populated The VMMap utility does not show the memory details of the Managed heap. Have tried to run it on both Windows 10 and Windows Server 2012R2. Any inputs on how to make it work will be helpful ? Have seen similar…
2
votes
1 answer

How to dynamically load a managed (.Net) DLL in unmanaged code?

How to dynamically load a managed (.Net) DLL in unmanaged code? I'm creating a plugin system in C++ that gets injected into an application and I would like to be able to write C# plugins. I've searched a bit but could only find COM loading (with…
lesderid
  • 3,388
  • 8
  • 39
  • 65
2
votes
1 answer

C++: Wrapping unmanaged dll using dll export

I am using Visual Studio 2010 targeting .Net 4.0 I am working with an unmanaged C++ dll using a managed C++ wrapper. I am using _declspec(dllexport) to export the unmanaged .dll below is the header file for the unmanaged dll: class DllExport…
Thomas
  • 962
  • 1
  • 6
  • 12
2
votes
1 answer

mixed programming for a string between C# managed code and c++ unmanaged code

I'm working on a c++ project which uses a string path to call an XML file. When i compiled the c++ everything works perfectly and i'm able to use the XML file as my project requires. I needed to use a C# GUI, so i made a wrapper to call all my…
Carolina M
  • 33
  • 4
2
votes
1 answer

AWS MWAA (Managed Apache Airflow) where to put the python code used in the dags?

Where do you put your actual code? The dags must be thin, this assumes that when the task starts to run it would do the imports, and run some python code. When we were on the standalone airflow I could add to the PYTHON_PATH my project root and do…
Ivailo Bardarov
  • 3,775
  • 1
  • 28
  • 25
2
votes
1 answer

Debugging c++ cli from c# - c++ breakpoints not hit

I have a solution with a c# win-exe-64 project referencing a c++ (managed,cli,64) library vcxproj. Using Visual Studio 16.10.3. All works fine and I can use the classes from c++ in c#. Problem is the debugging, stepping in the c++ code is not…
Tom
  • 190
  • 3
  • 18
2
votes
3 answers

How to call a Managed DLL File in C#?

I am making a scripting language but I have a serious problem. I need to make it so you can call .NET DLLs in the language but I have found no way to do this in C#. Does any one know how can I load and call a .NET dll programmatically? (I can not…
Grunt
  • 173
  • 2
  • 2
  • 11
2
votes
1 answer

Wrapping native C++ function with multiple outputs in a .dll for use in C#

I am wrapping some native C++ code in a C++/CLI .dll for use in .NET projects - mainly C#. The number of calls will be large so I am looking to do this in an effective way. The function I am wrapping takes the following arguments: int SomeFun( …
OG Dude
  • 936
  • 2
  • 12
  • 22
2
votes
2 answers

passing 2D array from managed C++ to unmanaged C++

I'm working on a managed C++ wrapper for unmanaged C++ code and have a question. Just for simplicity let's say that I need to pass a 2D array from C# code to Managed C++ to Unmanaged C++. I have no problem with 1D array but stuck with 2D version.…
ilyaw77
  • 937
  • 3
  • 10
  • 15
2
votes
4 answers

Passing impersonation token on a Managed Thread to an Unmanaged Thread

I have a case where a VB.Net winforms app needs to play WMV files from across the network. The user running the app cannot be given direct access to the network share. Through impersonation, I can see that the files exist (without impersonation,…
Jason