Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
no error report when error happens in async loaded function — Gideros Forum

no error report when error happens in async loaded function

keszeghkeszegh Member
edited June 2017 in Bugs and issues
as the title says, it seems that there is no error report when error happens in async loaded function. that's a bit inconvenient for bug tracking, couldn't gideros catch async errors too?

Comments

  • hgy29hgy29 Maintainer
    It seems ok here. I tried:
    Core.asyncCall(function () Core.yield(5) a[1]=2 end)
    And it resulted in:
    Uploading finished.
    main.lua:12: attempt to index global 'a' (a nil value)
    after 5 seconds, as expected.
  • thanks @hgy29 for checking.

    i clearly remember having this issue weeks ago but at that time i did not have time to raise it here, and now i cannot reproduce it. i thought that perhaps it was only in the exported windows app, but your code also gives an error there (as it should).
    so now i'm stuck, if i manage to reproduce the problem, i will update this thread.
  • maybe my problem was that breakpoints in zerobrane studio do not work in async called functions.
Sign In or Register to comment.