I have an ArcMap application (in Visual Studio) that has only been used in a 32bit environment. When I took the file and added the application to my ArcMap software on the 64bit environment I get an error about 80% through the process. I noticed that the project in the configuration manager was set to x86. I changed to ANY CPU and recompiled. Still get error on 64 bit environment. I am still recompilling project in my 32 bit environment. Do I need to recompile project/application in my new 64 bit environment? Thanks for any assistance. Below is the code that gets the error, it goes to my catch exception error message "Error setting symbols"
Sub FixMarkers(aLists(,) As Object) Dim pDoc As IMxDocument pDoc = application.Document Dim pMap As IMap pMap = pDoc.FocusMap Dim pSymbol As IMarkerSymbol Dim pLyr As IGeoFeatureLayer pLyr = pMap.Layer(0) Dim pRenderer As IUniqueValueRenderer pRenderer = New UniqueValueRenderer ' single field to base the symbology on pRenderer.FieldCount = 1 pRenderer.Field(0) = "List" iLists = aLists.GetUpperBound(0) Try For x = 1 To iLists System.Windows.Forms.Application.DoEvents() WriteToLog("SymbologyMarker: " + x.ToString()) pSymbol = SymbologyMarker((aLists(x, 2)), CShort(aLists(x, 3))) pRenderer.AddValue(aLists(x, 1), "", pSymbol) Next x pLyr.Renderer = pRenderer pDoc.UpdateContents() pDoc.ActiveView.Refresh() Catch exc As Exception Dim result1 As DialogResult = MessageBox.Show("Should the program continue? An Error occured: " & "Error setting symbols: " & exc.Message, "Error: Continue?", MessageBoxButtons.YesNo) If result1 = DialogResult.No Then ExitApp() Finally WriteToLog("Done with symbols: " & Now) End Try End Sub
Last edited by a moderator: