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
6 answers

Can managed code perform computations as fast as unmamanged?

I've been interested in different chess engines lately. There are many open and closed sources project in this field. They are all (most of them anyway) written in C/C++. This is kind of an obvious thing - you have a computationally intensive task,…
Andrew Savinykh
  • 25,351
  • 17
  • 103
  • 158
2
votes
1 answer

Call managed C++ functions from C#

I have an managed C++ Wrapper for unmanaged C++ code and it's necessary to use some pointer parameters into the methods! What's the best way in C# to call this wrapper functions (I tryed it with reference parameter in the managed code and create the…
leon22
  • 5,280
  • 19
  • 62
  • 100
2
votes
2 answers

C++/CLI wrapper for native C++ dll

I have written an C++/Cli wrapper for a native C++ dll, but when I call some method from C# I get an System.AccessViolationException error in my C++/Cli Wrapper dll! It's necessary to marshal the unmanaged types or something else?! //…
leon22
  • 5,280
  • 19
  • 62
  • 100
2
votes
1 answer

c++ managed and unmanaged static library

I have a some managed C++ assembly with simple code. This assembly has mixed (managed/unmanaged) code. If I put unmanaged code to the separate unmanaged static library and link it with managed code then I get registration error like this: "Failed…
yuriv
  • 21
  • 2
2
votes
3 answers

C# Managed Unmanaged code

I'm trying to understand managed/unmanaged code as it pertains to structs and classes. I have a struct with a property of another struct but its a pointer declaration as in: struct StateInfo { Bitboard board; StateInfo* previous; } I'm…
David
  • 131
  • 3
  • 6
2
votes
1 answer

&& : Cannot use this indirection on type '_Ty'

I want to convert std::list to std::list and i get error that && : Cannot use this indirection on type '_Ty' with [ _Ty=System::String^ ] Is it possible to convert ? convert.h #pragma once #include
Serhan Erkovan
  • 481
  • 4
  • 18
2
votes
2 answers

How can I return a string from a C++/CLI method back to unmanaged C++ that calls it

I'm trying to figure out how to return a string value from a C++/CLI method back to unmanaged C++ that calls it. In my current implementation, I have a string stored in a local String ^ variable in a (managed) C++/CLI method that I w/like the…
pgodar
  • 21
  • 3
2
votes
1 answer

Raise event in C# and catch in C++ MFC

I come from a .net background and I am fairly new to developing in C++. I am well used to events in C# and raising events when something meaningful happens. What I'm not sure about it how to raise "an event" in C++ just when an event raised in…
2
votes
1 answer

What is inside the other managed-heaps that Visual Studio won't display?

My ASP.NET Core 2.2 web-application, running on .NET Framework 4.7.2, uses over 220MB+ after startup at idle. 220MB is high - because it runs in a small Azure App Service Plan, I wanted to see what could be done to reduce memory usage. Visual…
Dai
  • 141,631
  • 28
  • 261
  • 374
2
votes
1 answer

Why does ComputeHash perform much slower then certutil -hashfile?

I am looking for efficient way of calculating hash of big files (3GB) and realized that calling Windows certutil with argument -hashfile perform hash computation 4 time faster (16 sec) than doing it via SHA512.Create().ComputeHash (~60 sec) and I am…
2
votes
2 answers

How to prevent function pointer created in managed code, and passed to unmanaged code, from getting garbage collected

I am using a library called muParserNET in my application. muParserNET is a function parsing library, and my application is calling it multiple times from different threads. muParserNET consists of a C++ (unmanaged) dll with a managed C# wrapper. …
bgarrood
  • 419
  • 8
  • 17
2
votes
1 answer

Setting up automatic crash dump generation on Windows

I've been looking around SO, but didn't find the definitive answer. I want to set up automatic crash dump generation on a production machine so that whenever a crash or hang happens, the dump will be saved to the disk without user's…
Stefan
  • 4,166
  • 3
  • 33
  • 47
2
votes
1 answer

Managed ODP.Net - Parameter in SELECT resulting in ReadOnly columns

I've asked the following on Oracle Community forum too, but SO is generally quicker to respond! I found a problem with Managed ODP.Net v18.3.0 where having an Oracle Parameter in the SELECT statement will result in the DataTable having many columns…
Dave Michener
  • 1,058
  • 11
  • 30
2
votes
1 answer

.NET managed dll custom actions in Installshield 2018

I am using Installshield 2018 Express edition to make my setup and I wanted to include some custom actions coded in .NET, but I can't find the way to reference a custom action in .NET. I guess Installshield would have an option to refer to the…
rortegax2
  • 507
  • 1
  • 6
  • 19
2
votes
0 answers

org.apache.hadoop.hbase.TableNotFoundException while creating Hive table on Hbase data

i am trying to creating hive managed table based on the hbase table. i created sample hbase table like : create ‘hbase_table’,’name’ and copied hbase-site.xml to hive/conf, and created auxlib directory in hive root directory, added zookeeper,…
user6325753
  • 585
  • 4
  • 10
  • 33