[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble: GTK + Octave + PThreads

From: Rafael Laboissiere
Subject: Trouble: GTK + Octave + PThreads
Date: Wed, 4 Nov 1998 15:09:17 +0100 (MET)

[ Crossposting to gtk-list and help-octave]

I am developing a GUI for Octave using GTK.  As it has to be launched
from the Octave prompt, I avoid the "two main loops problem" (Octave's
readline amd gkt_main) by using POSIX threads.  So the user can access
internal Octave data either from the GUI and from the prompt.

My threaded GUI runs okay as a stand-alone program, but I run into
trouble when I try to generate a dynamically loadable Octave function
(.oct) using mkoctfile.  I am getting some random "x io errors" (Gdk
error), mainly when gtk_exit is called or when I exit from the Octave
session.  I suspect that the problem is related with the loading of
shared libs.  Did anyone face a similar problem in the past?

I am using GTK+ 1.1.2 (with appropriate gdk_threads_* calls), XFree86 (thread safe), Octave 2.0.13 (recompiled with -D_REENTRANT),
and LinuxThreads, as included in the GNU lic 2.0 (aka libc6).  I can
send a minimal example to the nice soul willing to help me.

Thanks in advance for any help.


Rafael Laboissiere
Institut de la Communication Parlee | Email: address@hidden
UPRESS A CNRS 5009 / INPG           | Voice: +33
46, av. Felix Viallet               |   Fax: +33
F-38031 Grenoble CEDEX 1 France     |   URL:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]