Hey. I sometimes get an error when calling esignal.GetBar and esignal.GetNumBars in the OnBarsChanged event. Here's some of the code:
Private Sub esignal_OnBarsChanged(ByVal lHandle As Long)
Dim numBars As Long
Dim bar As IESignal.BarData
numBars = esignal.GetNumBars(lHandle)
If (numBars > 10) Then
numBars = 10
End If
For i = -1 * numBars + 1 To 0
bar = esignal.GetBar(lHandle, i)
...(Unrelated code)...
Next i
The last time the error happened, I received an error in the line "numBars = esignal.GetNumBars(lHandle)". The error message says "Automation error. System call failed." Also, the symbol corresponding to this handle was MAS.
Does anyone know what might be causing this?
Private Sub esignal_OnBarsChanged(ByVal lHandle As Long)
Dim numBars As Long
Dim bar As IESignal.BarData
numBars = esignal.GetNumBars(lHandle)
If (numBars > 10) Then
numBars = 10
End If
For i = -1 * numBars + 1 To 0
bar = esignal.GetBar(lHandle, i)
...(Unrelated code)...
Next i
The last time the error happened, I received an error in the line "numBars = esignal.GetNumBars(lHandle)". The error message says "Automation error. System call failed." Also, the symbol corresponding to this handle was MAS.
Does anyone know what might be causing this?
Comment