https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • u

    user

    06/03/2020, 8:00 PM
    is there a event to register onAppClose ?
  • b

    bright-gpu-74537

    06/03/2020, 8:03 PM
    OK, so thats "good" i guess... it means its maybe something in haxeui rather than anything to do with hxcpp or haxe 4.1
  • b

    bright-gpu-74537

    06/03/2020, 8:03 PM
    ok, so next, what if you run the most basic haxeui-hxwidgets app possible
  • b

    bright-gpu-74537

    06/03/2020, 8:04 PM
    haxelib run haxeui-core create hxwidgets
    in an empty folder
  • u

    user

    06/03/2020, 8:08 PM
    app.ready(function() { app.addComponent( new MainView() ); app.start(); }, function () { trace("end"); });
  • u

    user

    06/03/2020, 8:08 PM
    I have the "end" trace
  • u

    user

    06/03/2020, 8:08 PM
    so it's after 'HaxeUIApp.end()
  • b

    bright-gpu-74537

    06/03/2020, 8:09 PM
    did you create a minimal app? Is that it? Does it exit without the second function() {} ?
  • u

    user

    06/03/2020, 8:09 PM
    nop, it crashes too
  • u

    user

    06/03/2020, 8:09 PM
    I just discovered the onEnd 😉
  • u

    user

    06/03/2020, 8:09 PM
    testing the "minima app"
  • u

    user

    06/03/2020, 8:09 PM
    give me few sec
  • u

    user

    06/03/2020, 8:12 PM
    what the CLI to build an app ?
  • u

    user

    06/03/2020, 8:12 PM
    sorry, I use VSCode
  • b

    bright-gpu-74537

    06/03/2020, 8:12 PM
    haxe build.hxml
  • u

    user

    06/03/2020, 8:13 PM
    (shame on me...so ..'basic') 😦
  • u

    user

    06/03/2020, 8:17 PM
    FYI, if I debug muy app step by step, it closes
  • u

    user

    06/03/2020, 8:17 PM
    I put a brkp on trace('end') then step by step...no problem
  • u

    user

    06/03/2020, 8:18 PM
    but it pointed me to
  • u

    user

    06/03/2020, 8:18 PM
    while (true) { var nextTick = processEvents(); if (nextTick < 0) break; if (nextTick > 0) sleepLock.wait(nextTick); // wait until nextTick or wakeup() call }
  • u

    user

    06/03/2020, 8:18 PM
    it seems it could enter a forever loop
  • u

    user

    06/03/2020, 8:18 PM
    (l134 / EntryPoint.hx)
  • u

    user

    06/03/2020, 8:18 PM
    still waiting for the basic app to finish building
  • u

    user

    06/03/2020, 8:21 PM
    hooooooo
  • u

    user

    06/03/2020, 8:21 PM
    wait a minute
  • u

    user

    06/03/2020, 8:22 PM
    basic app doesn't crash
  • u

    user

    06/03/2020, 8:22 PM
    so it's something on my app
  • u

    user

    06/03/2020, 8:22 PM
    I perhaps got it
  • b

    bright-gpu-74537

    06/03/2020, 8:22 PM
    where is this from:
  • b

    bright-gpu-74537

    06/03/2020, 8:22 PM
    Copy code
    while (true) {
                var nextTick = processEvents();
                if (nextTick < 0)
                    break;
                if (nextTick > 0)
                    sleepLock.wait(nextTick); // wait until nextTick or wakeup() call
            }
1...252253254...1687Latest