MapWinGIS Layer Methods don't seem to work correctly

Aug 2, 2013 at 3:07 PM
Edited Aug 2, 2013 at 3:12 PM
The following C# code does not return back the information that it should:

int newPosition = -1;
int layerPosition = -1;
int layerHandle = -1;
String layerName = "";

// This works fine.......
layerHandle = axMap1.AddLayer(shp, true);
layerPosition = axMap1.get_LayerPosition(layerHandle);

// This returns an empty string ""
layerName = axMap1.get_LayerName(layerHandle);

Anyone else experience this, or am I doing something wrong?

Thanks!