RequestInt fiber error

About Monkey 2 Forums Monkey 2 Development RequestInt fiber error

This topic contains 1 reply, has 2 voices, and was last updated by  Mark Sibly 1 year, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7974

    nerobot
    Participant

    If we start RequestInt dialog from mojox.Label.Click (of DoubleClick) event, we’ll get the error

    But there is a checking inside of RequestInt dialog:

    and we pass this check normally.

    What’s happen here?

    And if we start dialog from click on MenuButton – worked well.

    (So far, I wrapped dialog call into Fiber and now it works.)

    #7990

    Mark Sibly
    Keymaster

    Had me going for a while there…

    Fiber.Current and Fiber.Main are functions, not fibers so I need to go:

    Assert( Fiber.Current()<>Fiber.Main(),…. )

    I think I would rather see Fiber.GetCurrent() and Fiber.GetMain() here. Static properties are not supported, so I don’t think these should ‘look’ like properties.

    Anyway, fixed the stuff in requesters.monkey2 and pushed to develop, let me know if you find any more.

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

You must be logged in to reply to this topic.