Compiler Warning - '_DMap.DrawBackBuffer' cannot be marshaled by the runtime marshaler

Mar 1, 2013 at 8:53 AM
Hi there,
I'm trying to run a project in C# with MapWinGIS. The project seems to work correctly, but I have several instances of the following warning:

Warning 1 Processing COM reference "MapWinGIS" from path "C:\dev\MapWinGIS\MapWinGIS.ocx". At least one of the arguments for '_DMap.DrawBackBuffer' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

A quick google search does not seem to return any results.

What does it mean, what am I doing wrong and how can I get rid of it?
Mar 4, 2013 at 2:21 PM
Hi Rik,

You're not doing anything wrong. You can ignore these warnings.

Marked as answer by pmeems on 12/5/2014 at 12:14 AM
May 3, 2014 at 2:57 PM
Edited May 3, 2014 at 2:57 PM

I get also those warnings, as I like to have no warning, still no way to change code avoid them ?