Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using the cancel integer when unloading a form stops the IDE from working. #2311

@CoffeeMate2

Description

@CoffeeMate2

Example code:

Private Sub Form_Unload(Cancel As Integer) Cancel = 1 End Sub

To reproduce, set the cancel integer to any integer above 0 at the unload sub.
Hit F5 to run the program in the IDE.
Hit the stop button in the IDE.

The debug console states "[DEBUGGER] Waiting for remaining forms to close..."
The code can still be modified somewhat, but the program running in the IDE remains running, and cannot be stopped without closing TwinBasic completely and re-loading the project.

Expected behaviour:
Pressing the stop button in the IDE should override the code which prevents the form being closed at run-time.

Screenshot:
Image

Desktop (please complete the following information):

  • OS: Windows 10
  • twinBASIC IDE Beta 953

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions