View Full Version : Buffer overrun detected!

12-07-2009, 04:03 PM

I encounter this error when the program gets to this line of code:

MapPoint.DataSet dataset = axMapPointControl.ActiveMap.DataSets.ImportData(fi leName, missing, MapPoint.GeoCountry.geoCountryDefault,MapPoint.Geo Delimiter.geoDelimiterSemicolon, MapPoint.GeoImportFlags.geoImportFirstRowIsHeading s);

This exception is caught:
'The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at MapPoint.DataSets.ImportData(String DataSourceMoniker, Object ArrayOfFields, GeoCountry Country, GeoDelimiter Delimiter, Int32 ImportFlags) '

Then this one is caught:
'The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
at MapPoint.Map.get_DataSets()'

Then this error is thrown:
'Buffer overrun detected!
Program: C:\PROGR~1\M1770F~1\MapPoint.exe
A buffer overrun has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now be terminated.'

It occurs every time with one set of pushpins, but not with other sets of pushpins, so I wonder if this even a problem with MapPoint.

Has anyone seen this error before? Any ideas?

Thanks in advance!

12-08-2009, 01:26 PM
This took some time to figure out. When the pushpin's note's length was greater than 300 characters, then it would throw the exceptions listed above.

12-09-2009, 08:13 AM

thanks for feedback

Bob Chase
10-16-2011, 12:37 PM
This has been killing me for a year. I will implement your solution, thanks. Please post any updates so that I can implement those too, thanks.