Skip to content

APPCRASH after app exit if NewBigInteger().ToString() function used. #110

@andkylele

Description

@andkylele

I'm submitting a bug report I'm submitting a feature request

Library Version:3.2.0.0

Please tell us about your environment:

Operating System: Windows 10 & 11

Current behavior:
Public Function HEX_To_BigNumber_2(ByRef decimalDataArr() As Byte) As String
Dim decArrPrefix00() As Byte, ls_NumVal As String
On Error GoTo error_trap
ls_NumVal = NewBigInteger(decimalDataArr).ToString()
HEX_To_BigNumber_2= ls_NumVal
Exit Function
error_trap:
HEX_To_BigNumber_2= "0"
End Function

During start program calls NewBigInteger(decimalDataArr).ToString() and everything seems fine.
But when the app is terminated some time later it crashes instead of closing gracefully. If the line:
ls_NumVal = NewBigInteger(decimalDataArr).ToString()

is replaced by:

ls_NumVal = "0"

app closes quietly (no error, no crash).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions