API Support Forum
User Profile

Viewing User Profile for: RAndrey3639


About

Mar 30, 2016 11:06 AM

Feb 14, 2017 12:31 AM

May 12, 2023 09:32 AM



Post Statistics
RAndrey3639 has contributed to 2 posts out of 5677 total posts (0.04%) in 3160 days (0.00 posts per day).

20 most recent posts:

API Support » Errors on EventsTimer_Tick Feb 14, 2017 @ 12:31 AM (Total replies: 3)

3.5.14.1
Rinas Andrey


API Support » Errors on EventsTimer_Tick Feb 13, 2017 @ 09:22 AM (Total replies: 3)

Hello
Sometimes get following errors:
1)
2017-02-08 17:11:48,148 [ 9] ERROR GAIN Futures: Client error.
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at OEC.API.Contract.CompareTo(Contract other)
at System.Collections.Generic.GenericArraySortHelper`2.DepthLimitedQuickSort(TKey[] keys, TValue[] values, Int32 left, Int32 right, Int32 depthLimit)
at System.Collections.Generic.GenericArraySortHelper`2.Sort(TKey[] keys, TValue[] values, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.GenericArraySortHelper`2.Sort(TKey[] keys, TValue[] values, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[TKey,TValue](TKey[] keys, TValue[] items, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[TKey,TValue](TKey[] keys, TValue[] items, IComparer`1 comparer)
at System.Collections.Generic.SortedList`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at OEC.API.Core.CheckEvents()
at OEC.API.Core.VerifyConnection()
at OEC.API.OECClient.m_EventsTimer_Tick(Object sender, EventArgs e)

2)
2017-02-08 16:56:19,159 ERROR GAIN Futures: Client error.
System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.SortedList`2.ValueList.CopyTo(TValue[] array, Int32 arrayIndex)
at System.Collections.Generic.SortedList`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at OEC.API.Core.CheckEvents()
at OEC.API.Core.VerifyConnection()
at OEC.API.OECClient.m_EventsTimer_Tick(Object sender, EventArgs e)

Thank you
Rinas Andrey