G
Guest
Hi,
I am working on a mixed native/managed project involving DirectShow and am
trying to decide how the modules should be partitioned. I am trying to
understand the true affect of #pragma unmanaged in a managed project. From my
research it seems that, assuming there are no managed/native thunks involved,
the code should perform as though it were compiled in a native Win32 project.
However, as a simple test, I created a project that builds a simple graph
and does some limited frame processing using a sample grabber. I put #pragma
unmanaged at the top of *every* file and compiled it as a managed project.
With the /clr switch there is dramatic performance degradation. With no
managed code at all in this project, I don't understand why. Do the COM calls
in unmanaged code still go through Interop?
Any explanation/insight would be appriciated.
I am working on a mixed native/managed project involving DirectShow and am
trying to decide how the modules should be partitioned. I am trying to
understand the true affect of #pragma unmanaged in a managed project. From my
research it seems that, assuming there are no managed/native thunks involved,
the code should perform as though it were compiled in a native Win32 project.
However, as a simple test, I created a project that builds a simple graph
and does some limited frame processing using a sample grabber. I put #pragma
unmanaged at the top of *every* file and compiled it as a managed project.
With the /clr switch there is dramatic performance degradation. With no
managed code at all in this project, I don't understand why. Do the COM calls
in unmanaged code still go through Interop?
Any explanation/insight would be appriciated.