View Single Post

  #2 (permalink)  
Old 12-28-2007
Paul Larson Paul Larson is offline
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
Wink Re: QueryPolygon Error

It's a simple problem: Your array of Locations is dimensioned too large.
Instead use

Dim locations(4) As MapPoint.Location

In VB.Net, the zero-base is assumed, so you were actually creating a 6-item array, the last of which was not initialized.

HTH
-Paul
Reply With Quote