[Gambas-bugtracker] Bug #2310: Gambas Apps have isssues talking to other gambas apps started with exec

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Jul 27 16:36:48 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2310&from=L21haW4-

Comment #22 by Brian G:

I was attempting to make as busy as possible so the problem was not random.

I understand that the event loop runs when main ends, very useful for many apps.

But if the app wants to return an exit code
and does Quit 2 for example.

main exits right away without entering the event loop.

Example:

sub main()
    ......    some processing
    if result = bad then 
       quit 2
    else
       quit 0
    endif
end



never enters the event loop,

Brian G changed the state of the bug to: Accepted.




More information about the Bugtracker mailing list