PDA

View Full Version : Buffer overrun detected!



charas
12-07-2009, 05:03 PM
Hi

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!

charas
12-08-2009, 02: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.

Wilfried
12-09-2009, 09:13 AM
Hi,

thanks for feedback

Bob Chase
10-16-2011, 01: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.