Struct still crashes in some cases

About Monkey 2 Forums Monkey 2 Development Struct still crashes in some cases

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  Ethernaut 2 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6776

    Ethernaut
    Participant

    This problem on Github is marked as closed, but it still crashes when the struct contains an Image field.
    https://github.com/blitz-research/monkey2/issues/114

    #6780

    abakobo
    Participant

    Images are initialised by NewAppInstance.
    See this closed issue: https://github.com/blitz-research/monkey2/issues/103

    Edit: opps it’working with class so it must be something else?

    #6797

    Ethernaut
    Participant

    Yeah, this doesn’t even compile, so I think it’s something else. There’s no App.Run in this minimal example, but when I first ran into it I had a proper AppInstance.

    #6843

    Mark Sibly
    Keymaster

    Fixed now in develop branch. I forget that assigning a struct actually also involves a bunch of member assignments.

    This is a hard one to get 100% right though, as there’s a tension (in c++) between not wanting to #include too much, which can cause forward referencing issues, and having to #include enough to keep compiler happy. And fixing one always affects the other…

    I think a new approach may be in order and have some ideas but for now I’ll just keep dealing with these on a case by case basis.

    #6865

    Ethernaut
    Participant

    <edit>
    Never mind, works fine now. Thanks Mark!!!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.