Debug mode works, but not RUN mode

stevebegi

New member
Joined
Jun 3, 2020
Messages
4
Programming Experience
Beginner
Hello,

I am creating a program n VB.NET that uses ArcMap. Part of the program identifies a point on raster file using IIdentify object for ESRI. I am able to get the result whuile I am debugging my code, but cant seem to get it working in Auto Run mode. I even tried to chnage the raster to a shapefile, but I got the same result. I have included my both options in code to illustrate. Am I missing something??

Identity:
'IDENTIFY TOOL:  IDENTIFY ON RASTER LAYER (Raster DataSet)
pPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(lonx, laty)
pGeom = pPoint
pIdentify = CType(pRLayer, IIdentify)


 'IDENTIFY TOOL:  IDENTIFY ON FEATURE LAYER (Shapefile)
pPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(lonx, laty)
pGeom = pPoint
pIdentify = CType(pFeatureLayer, IIdentify)
 
Back
Top