[Gambas-user] A Task Issue

Jorge Carrión shordi at gmail.com
Wed Mar 7 13:53:59 CET 2018


Yes. The second task tried to create a Form, so it uses graphic libraries.
I'll try what you suggest.

Thanks again.


2018-03-07 13:50 GMT+01:00 Benoît Minisini <g4mba5 at gmail.com>:

> Le 07/03/2018 à 13:35, Jorge Carrión a écrit :
>
>>
>> Benoît:
>> This seems the solution indeed. It was really that: I don't understand
>> that task doesn't run in same process.
>> Another question:
>> Can be more than one task simultaneously?
>>
>
> Of course.
>
> I've tried to do so and the program abort with code 6 and this message on
>> console:
>>
>> "[xcb] Most likely this is a multi-threaded client and XInitThreads has
>> not been called
>> [xcb] Aborting, sorry about that.
>> gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaración
>> `!xcb_xlib_threads_sequence_lost' no se cumple."
>>
>>
> Because you are in a GUI program, and GUI libraries do not like being
> forked at all.
>
> Apparently the xcb library aborts as soon as you want to use the event
> loop inside a task (the Pop3Client uses it).
>
> Try to put 'GB_X11_INIT_THREADS=1' in your environment to force the
> XInitThreads() X11 method to be called, and check if it works.
>
> --
> Benoît Minisini
>
> --------------------------------------------------
>
> This is the Gambas Mailing List:
> https://lists.gambas-basic.org/listinfo/user
>
> Search the list:
> https://lists.gambas-basic.org/cgi-bin/search.cgi
>
> Hosted by https://www.hostsharing.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180307/5644a26d/attachment.html>


More information about the User mailing list