Interop-Question

  • Thread starter Thread starter Axel Gallus
  • Start date Start date
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?
 
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
 
Back
Top