From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7efbdbcd2058c74e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-29 11:11:01 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GtkAda with several task (or distributed solution?)? Date: 27 Apr 2001 20:49:01 +0100 Organization: CodeFella Message-ID: References: <3AE9145E.36604291@mail.utexas.edu> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 988567836 nnrp-12:18385 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 27 Apr 2001 19:49:01 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: newsfeed.google.com comp.lang.ada:7034 Date: 2001-04-27T19:49:01+00:00 List-Id: "Bobby D. Bryant" writes: > I have just started using GtkAda with a distributed program > implemented with gnat-glade. I only need the GUI for the "master" > partition, but after reading your message I ran an experiment to see > whether I could create a main window from each of the slaves as > well, and it worked fine. My guess would be that each partition can > run its own Gtk.Main.Main, though there may well be some gotchas > that my simple test didn't uncover. In general, under X, you can get away with more than one task talking to the same physical screen or even the same window provided they use different display connections (Display* in C). Say, I create a window, then pass you the Window handle and you draw on it .. but I'd better not register for any events! Usually easier to use XInitThreads(), XtToolkitThreadInitialize(). My experience is that if you see weird X protocol errors you've most likely got a threading problem! and they appear pretty quickly.