If I open a closed market with COM interface, i have those errors :
- Code: Select all
29052013 22:37:25:718: System.IndexOutOfRangeException: There is no row at position 0.
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at Betting_Assistant.StandardGrid.initGrid() in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\StandardGrid.vb:line 176
29052013 22:37:25:734: waiting for current refresh to finish
29052013 22:37:25:734: request next refresh
29052013 22:37:25:921: next refresh complete
29052013 22:37:31:562: System.ArgumentNullException: Value cannot be null.
Parameter name: brush
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
at Betting_Assistant.backOddsCell.Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, Object value, Object formattedValue, String errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts) in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\StandardGrid.vb:line 1554
29052013 22:37:31:562: System.ArgumentNullException: Value cannot be null.