Using latest Ranorex 8.3.2, and in my code I'm making a call to Ranorex.Imaging.Contains. At this point in my code, there's a bit of a delay and then Visual Studio just stops running the script. So, it goes from running to stopped (not break mode). I have try/catch surrounding this code and it doesn't generate an exception.
This was working last time I ran it using Ranorex 8.3.0 (the code is not new or modified).
Here's a sample of my code:
'This Function is looking at a Silverlight control of a table, and trying to determine which row is 'selected' by looking at the color 'of the cell. A selected row will have a different color than unselected rows. There was no other easy way to determine a selected row'in this Silverlight object. Public Function get_ActiveRowWithFocusOnTaskName() As Integer Dim lFootprint As String = "Module: " & mcs_ModuleName & ", Function: " & (New StackFrame()).GetMethod.Name & " :: " Dim PWTable As Ranorex.Unknown Dim PWRow As Ranorex.Unknown Dim PWCol As Ranorex.Unknown Dim iRow As Integer Dim iCurrentIndex As Integer = 1 Dim bFoundTask As Boolean = False Dim bMatch As Boolean Dim oBMP As Bitmap Try Autoweb.logInfo(lFootprint) If System.Diagnostics.Debugger.IsAttached Then If Not My.Computer.FileSystem.FileExists(My.Application.Info.DirectoryPath & "\Bitmaps\ProjectWorksheet\Blue_Cell_Blank.bmp") Then 'You need to copy the BMP's from the build server or C:\Ranorex_Scripts\v18 folder for this to work Stop End If End If oBMP = Ranorex.Imaging.Load(My.Application.Info.DirectoryPath & "\Bitmaps\ProjectWorksheet\selected_row_TaskNameCol_focused_task_icon_only.bmp") PWTable = SilverlightControl & "/container/table/element[@automationid='RowsPresenter']" PWTable.EnsureVisible() Ranorex.Imaging.FindOptions.Default.Similarity = 0.9999 'Iterate through the rows, looking at the column that has the Task Name, if it's the one you want, click the icon beside 'it (if it's editable, clicking the name will go into edit mode) For iRow = 0 To PWTable.Children.Count - 1 PWRow = PWTable.Children.Item(iRow) If PWRow.Visible Then PWCol = PWRow.Children.Item(TaskNameCol) If Not PWCol.Visible Then PWCol.EnsureVisible() End If ''' This call is just dying in 8.3.2. No exception thrown. Was working in 8.3.0 bMatch = Ranorex.Imaging.Contains(PWCol, oBMP) If bMatch Then ActiveRow = iRow + 1 Return iRow + 1 End If End If Next Return 0 Catch ex As RanorexException Autoweb.logError(lFootprint & "A Ranorex Exception Occurred --> " & ex.Message) Return -1 Catch ex As Exception Autoweb.logError(lFootprint & "An Exception Occurred --> " & ex.Message) Return -1 End Try End Function