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

Is there a need to free memory in unmanaged code when it is loaded by managed code

There are 2 binaries. One is native/unmanaged C++ dll and other is managed c# exe. Now what I am doing is writing a function in c++ dll and allocated memory inside it using malloc. I exported this function to be used by my c# module. In C++ I…
Supernova009
  • 95
  • 1
  • 7
3
votes
3 answers

Error in Output Window - Managed' has exited with code -2147023895 (0x800703e9)

I am unable to run a windows application in Visual Studio 2008. Program has been working fine until I started getting an error in the Output Window - " The program '[2260] MUS3.vshost.exe: Managed' has exited with code -2147023895 (0x800703e9). " …
3
votes
3 answers

Passing char pointer from C# to c++ function

I am stuck in c# implementation side, as I am pretty new to it. The thing is, I want to pass a 'pointer'(having memory) from c# code so that My c++ application can copy pchListSoftwares buffer to pchInstalledSoftwares. I am not able to figure out…
Supernova009
  • 95
  • 1
  • 7
3
votes
2 answers

Unmanaged C++ class in C#

Can I instantiate and "work with" an unmanaged C++ class from C# code (say, using DllImport and such)?
Miguel
  • 3,466
  • 8
  • 38
  • 67
3
votes
1 answer

C++ Virtual Table Error?

I have the following structure: //Unmanaged(.h) class myInterface { public: virtual bool Send(char* myChar); } //Managed (.h) class myClass; public ref class Parser { bool Transmit(String^ mString); } class myClass : public…
Jazz.
  • 458
  • 4
  • 12
3
votes
1 answer

Cmake managed C++

I have cli wrapper function which i am trying to configure in cmake. After i generate the project with cmake the generated .proj file does not have the property of clr support is set to no common languaage runtime support. below is my cmake file …
swetha
  • 321
  • 5
  • 16
3
votes
0 answers

What are the different ways of combining C++ and C#?

Possible Duplicate: Writing a DLL in C/C++ for .Net interoperability I am writing a school project in C++, where I would like to have a GUI written in C# with WPF. This leads me to my question: What are the different ways of combining unmanaged…
Jørgen Fogh
  • 7,516
  • 2
  • 36
  • 46
3
votes
1 answer

How to make CLI/C++ wrapper of C++ native project

typedef struct st { int x; }tConfig; class CRLDownload { public: CRLDownload(); ~CRLDownload(); void run(tConfig config); }; How to make CLI/C++ wrapper of C++ native. I want to use this tConfig struct and class…
user5023960
3
votes
1 answer

GetBinaryType from Managed code gives opposite results

I'm finding that when pinvoking GetBinaryType from managed code, I'm getting the opposite result of calling GetBinaryType from native code on the same machine. I've borrowed the marshalling declaration from elsewhere: public enum BinaryType :…
DropPhone
  • 396
  • 2
  • 9
3
votes
2 answers

Is a WPF application managed code only?

I want to use WPF in an app. I want to write it in C++. Does the application have to be managed? I know that I can mix managed with unmanaged. I'm wondering if I can have the whole application be unmanaged.
zooropa
  • 3,929
  • 8
  • 39
  • 61
3
votes
1 answer

Ultra-fast bitmap rendering using WPF, best solution?

I'm getting from our hardware device (FPGA) roughly 20 frames per second (500x500 px) and I would like to render them as fast as possible. We basically get a frame buffer every 50 msec and if my rendering is too slow - well... I'm skipping…
HW2015
  • 81
  • 2
  • 11
3
votes
1 answer

How to declare managed list in C++/CLI

using C++/CLI I want to declare a list of a list. When declaring a regular list, I write: List^ NameOfList = gcnew List(2); Consequently, I tried to declare the list of a list like: List^>^ AnotherName = gcnew…
3
votes
4 answers

Char array to a class

I have a incoming stream of bytes (unsigned char) from either a file or network. I need this data placed in a class, and is looking for a NET-way of doing this. I bet some does this all the time, so I guess there is a better method to do this than…
rozon
  • 2,518
  • 4
  • 23
  • 37
3
votes
2 answers

ODP.NET managed driver does not return contol in case of command timeout

I am using ODP.NET managed driver 12.1.0.2.1 (ODAC 12c Release 3) and have found critical bug. In case of timeout during command execution lead to lost of threads and connections from connection pool. This test always…
Ivan Karmanov
  • 31
  • 1
  • 3
3
votes
2 answers

How to make a managed (clr) multithreaded c++ .dll?

I am trying to make a managed .dll in c++ that requires the support for multithreading. I am developing in visual Studio 2013, using platform toolset version v120. the reason I need this to be a managed assembly is because it is required to…
AleX_
  • 508
  • 1
  • 6
  • 20