XForms: Problem with Threads and ACE

Joerg Kuempel (Joerg.Kuempel@e-technik.uni-ulm.de)
Tue, 24 Mar 1998 15:42:47 -0000 (???)

# To subscribers of the xforms list from Joerg Kuempel <Joerg.Kuempel@e-technik.uni-ulm.de> :

Hello !

I have a problem with using the XForms library (Ver 0.88) together with the
linuxthreads library (-lpthreads, VER 0.6) and the ACE library (-lACE VER 4.3).

Whenever I link the compiled objects together using either the
library -lpthreads OR the library -lACE, the executable will produce a core dump
or the following error message:

>> XIO: fatal IO error 0 (Success) on X server ":0.0"
>> after 223 requests (222 known processed) with 3 events remaining.

I found out by my own experience that this error message is caused by the first
command of the Xforms library in the program, the init-command:
fl_initialize(&argc,argv, 0 , 0, 0); .

When I leave this command out, the program doesn't crash. (It doesn't work too,
because the form isn't displayed.)

When I compile the program without the libraries (pthreads and ACE) it works
like it should do.

I am now a little bit confused, because in the XForms manual in chapter 4.2,
side 42, the last sentence of the chapter, is stated: ..., or use multi-thread
(but be careful to limit X server access within one thread). Secondly I DON'T
use any threading commands or any commands of the ACE library in this testfile
I described above. Only the linking of the libraries causes the described error
message.

So, what am I doing wrong and how can I work around this problem??
On the one hand I have to use these two libraries (linuxthreads and ACE)
because of our project, and on the other hand I'd like to use the XForms
library.
The platform we're working on is Linux(2.0.30) with gcc 2.7.2.3, libc 5.4.38
and libg++ 2.7.2.8.

I will be very happy if anyone could help me !!

-----------------------------------------------------
Dipl.-Ing. Joerg Kuempel
Universitaet Ulm, Abt. Mess-, Regel- und Mikrotechnik
Raum : 41.1.224
Tel. : ++49 0731 / 50-26310
email: joerg.kuempel@e-technik.uni-ulm.de
-----------------------------------------------------
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/