Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation Error #313

Open
RecoX opened this issue Sep 15, 2019 · 2 comments
Open

Automation Error #313

RecoX opened this issue Sep 15, 2019 · 2 comments

Comments

@RecoX
Copy link
Member

RecoX commented Sep 15, 2019

111
A veces pasa esto, pareceria que es por que faltan datos de algun paqueter.

Hay que arreglarlo.

@RecoX
Copy link
Member Author

RecoX commented Sep 15, 2019

Public Function ReadASCIIString() As String
'***************************************************
'Autor: Juan Martin Sotuyo Dodero (Maraxus)
'Last Modification: 04/27/06
'Reads a variable length ASCII string from the queue and removes it
'***************************************************
    Dim buf(1) As Byte
    Dim Length As Integer
    
    'Make sure we can read a valid length
    If queueLength > 1 Then
        'Read the length
        Call ReadData(buf, 2)
        Call CopyMemory(Length, buf(0), 2)
        
        'Make sure there are enough bytes
        If queueLength >= Length + 2 Then
            'Remove the length
            Call RemoveData(2)
            
            If Length > 0 Then
                Dim buf2() As Byte
                ReDim buf2(Length - 1) As Byte
                
                
                'Read the data and remove it
                Call RemoveData(ReadData(buf2, Length))
                
                ReadASCIIString = StrConv(buf2, vbUnicode)
            End If
        Else
            Call Err.Raise(NOT_ENOUGH_DATA)
        End If
    Else
        Call Err.Raise(NOT_ENOUGH_DATA)
    End If
End Function

Muere en esta funcion.

@RecoX
Copy link
Member Author

RecoX commented Jul 7, 2020

#721

deben de estar relacionados.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant