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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Problems with the "mwindows" switch Date: Sat, 23 May 2015 10:06:25 +0200 Organization: cbb software GmbH Message-ID: References: <00836c9e-9ed0-4638-9d0b-0b3cd4e07c65@googlegroups.com> <56c90d5b-00ea-4836-a899-aa494c9068a8@googlegroups.com> <1fjnvg1hjj50j.159ljfmjmsid1.dlg@40tude.net> <67aff8cf-976f-47c5-9233-55c177da93eb@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: evoS9sCOdnHjo0GRLLMU1Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:25972 Date: 2015-05-23T10:06:25+02:00 List-Id: On Sat, 23 May 2015 00:20:57 -0700 (PDT), NiGHTS wrote: > The problem is that the program will not start when the "mwindows" linker > option is used. I don't know how to go about debugging this problem. It quite difficult to imagine how mwindows could have anything to do with that. "Will not start" means what, technically? Any properly linked executable will start, otherwise Windows gives a message box that the executable is corrupted etc. Thus, again, what is the problem? No window? No process? There are three vital stages of a GTK program execution before it becomes operational and anything visible happens: 1. Elaboration phase includes initialization of static objects and sections, loading and linking to dynamic libraries etc. 2. Execution prior to entering the main messages loop. 3. Creation of GTK objects, like the main Window, within the messages loop. (Note that during #1 no Text_IO could ever help) P.S. GTK is not task/thread-safe. Any GTK (GDK, Glib, Gobject etc) calls shall be done on the context of the main task, the one running the messages loop. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de