Interop-Question

A

Axel Gallus

I am using a C++ unmanaged dll, with which I load images.
Those images are then exposed as RGB Bitmaps in Memory.

Furthermore I have written the core of my application in C++ managed .Net.

I am now looking for a possibility to proccess this image in my managed
net. core and therefore
would like to access this image as efficient as possible from managed .Net.

As far as i know, marshalling would copy the Bitmap to the managed Heap,
so there would be a copy overhead.

What other possibilities have I?
 
O

Oliver Sturm

Hello Axel,

I would personally recommend you try to structure your code and
functionality in such a way that the data is directly available to the
parts of your code that need to work on it. In my experience, there are
some inherent flaws to a structure that requires access to big data blocks
from managed and non-managed code alternately.


Oliver Sturm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top