-
-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Describe the bug
In the code below, the debugger crashes within FontFamily.New if:
- a breakpoint is put there, and
- the
Mevariable in the variables pane is expanded, and - the build is win32.
If Me is not expanded, the crash still happens, a bit later - once New is exited via e.g. F5.
The crash does not happen on a win64 build.
Module MainModule
Sub Main()
Dim ff As Any = New FontFamily()
Stop
End Sub
End Module
Class FontFamily
Dim ff As Long
Sub New()
ff = 0 ' Put a breakpoint here and expand Me in variables pane.
End Sub
Protected Property Get Native() As Long
Return ff
End Property
End ClassTo Reproduce
Scenario A:
- Paste the above in a new project, or use the reproducer below.
- Set breakpoint on the
ff = 0line. - Press F5 (Run).
- Expand
Mein the variables pane. - Observe a crash in the diagnostics pane.
- Press F5 again.
- The program crashes as soon as the breakpoint is reached. It will keep crashing until
Meis collapsed in the variables pane.
Scenario B:
- Change the property get from protected to
Public. - Keep the breakpoint on the
ff = 0line. - Press F5 (Run).
- Collapse
Mein the variables pane. - Press F5 (Run) to restart the program if needed (i.e. if
Mewas expanded at the beginning of step 4, causing a crash). - Observe a successful stop at the breakpoint, without a crash.
- Press F5 to continue.
- The program crashes.
Expected behavior
No crash :)
Desktop (please complete the following information):
- OS: Windows 10
- twinBASIC compiler version: beta 947 and beta 964 both exhibit this problem.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels