At least one of the arguments for cannot be marshaled by the runtime marshaler

Description

When using the MapWinGIS control on a WinForms application that application produces the following compile warning for several MapWinGIS classes:

warning MSB3305: Processing COM reference "MapWinGIS" from path "\src\bin\Win32\MapWinGIS.ocx". At least one of the arguments for '***' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

These are the reported classes:

  • IShapeDrawingOptions.DrawShape

  • IShapeDrawingOptions.DrawRectangle

  • IShapeDrawingOptions.DrawPoint

  • IShapeDrawingOptions.DrawLine

  • ILinePattern.Draw

  • ILineSegment.Draw

  • _DMap.DrawBackBuffer

  • ICharts.DrawChart

  • Map.DrawBackBuffer

  • ShapeDrawingOptions.DrawShape

  • ShapeDrawingOptions.DrawRectangle

  • ShapeDrawingOptions.DrawPoint

  • ShapeDrawingOptions.DrawLine

  • Charts.DrawChart

  • LinePattern.Draw

  • LineSegment.Draw

     

 

Status

Assignee

Jerry Faust

Reporter

Paul Meems

Labels

None

Epic Link

Affects versions

None

Fix versions

Priority

Medium
Configure