After installing MapWinGIS 4.9.4.0 or 4.9.4.2 the Labels.Serialize() function give a AccessViolationExpection error:
An unhandled exception of type 'System.AccessViolationException' occurred
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
This code executes as expected in 4.3.9.5 but fails on later releases.
sf = pMapImage.AxMap1.get_Shapefile(iHandle)
Dim xmlLabelInfo As String = sf.Labels.Serialize()
An unhandled exception of type 'System.AccessViolationException' occurred
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
This code executes as expected in 4.3.9.5 but fails on later releases.
sf = pMapImage.AxMap1.get_Shapefile(iHandle)
Dim xmlLabelInfo As String = sf.Labels.Serialize()