Skip to content

wxSheetSplitter initializes twice (leading to assert...) #37

@GWRon

Description

@GWRon

Issue:
Seems the wxSheetSplitter is initialized twice - which it shouldn't.

example:
Compile "samples/sheet.bmx" and see the assert live.

Details:
https://www.syntaxbomb.com/index.php/topic,5058.msg21321.html#msg21321

img

Side note:
While looking through the generated C-code I saw this:
struct wx_wxsheet_wxSheetSplitter_obj* bbt_sheetSplitter=(struct wx_wxsheet_wxSheetSplitter_obj*)wx_wxsheet_wxSheetSplitter.m_Create_TwxWindowiiiiii((struct wx_wxsheet_wxSheetSplitter_obj*)((struct wx_wxsheet_wxSheetSplitter_obj*)bbObjectNew((BBClass *)&wx_wxsheet_wxSheetSplitter)),(struct wx_wxwindow_wxWindow_obj*)((struct wx_wxwindow_wxWindow_obj*)bbObjectDowncast((BBOBJECT)bbt_splitter,(BBClass*)&wx_wxwindow_wxWindow)),-1,0,0,-1,-1,768);
Which seems to be ... something like a cast of something already casted into the right form. Just a matter of missing "optimization" (A does not know B and they just follow their rules).

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