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

Assigning empty byte array to String crashes #1623

Closed
Kr00l opened this issue Jul 17, 2023 · 1 comment
Closed

Assigning empty byte array to String crashes #1623

Kr00l opened this issue Jul 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Kr00l
Copy link
Collaborator

Kr00l commented Jul 17, 2023

Describe the bug
Assigning empty byte array to String crashes hard.

To Reproduce

Dim B() As Byte, MyStr As String

MyStr = B()

MsgBox MyStr

Expected behavior
That a "vbNullString" is assigned. (like in VB6)

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • twinBASIC compiler version [e.g. BETA 362]

Additional context
This bug happens in the RichTextBox control of VBCCR in tB.

@Kr00l Kr00l added the bug Something isn't working label Jul 19, 2023
@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 367. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants