Skip to content

Removing tabview on Linux makes app crash #34

@Shallowmallow

Description

@Shallowmallow

Current Behavior

It crashes

#1  0x000055555643c42b in wxBookCtrlBase::DeletePage(unsigned long) ()
#2  0x00005555563ff967 in wxNotebook::DeleteAllPages() ()
#3  0x00005555563ffee8 in wxNotebook::~wxNotebook() ()

Possible Solution

I have no idea. But a workaround is to hide the tabview instead.

Test app / minimal test case

import haxe.ui.containers.VBox;
import haxe.ui.events.MouseEvent;


@:xml('
<vbox width="100%" height="100%">
<button id="button" text="remove tab"/>
<tabview id="tab" width="100%" height="100%">
<vbox id="text_editor_tab" text ="TEXT_PREVIEW" width="100%" height="100%">
</vbox>
</tabview>
</vbox>')
class A003 extends VBox {

    @:bind(button, MouseEvent.CLICK)
    private function removeTab(e) {
        removeComponent(tab);
    }

}

Clicking on the button makes the app crash.

Your Environment

MxLinux 22
wxwidgets 3.2.1

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