kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
106 stars 28 forks source link

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

Open andkylele opened 3 months ago

andkylele commented 3 months ago

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).


andkylele commented 3 months ago

Windows Error Reporting file attached. Report.wer.txt