comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Problems with the "mwindows" switch
Date: Sat, 23 May 2015 10:06:25 +0200
Date: 2015-05-23T10:06:25+02:00	[thread overview]
Message-ID: <htrcr1tss2yf$.er3d3o4mf6oc.dlg@40tude.net> (raw)
In-Reply-To: 67aff8cf-976f-47c5-9233-55c177da93eb@googlegroups.com

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


  reply	other threads:[~2015-05-23  8:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-22 18:35 Problems with the "mwindows" switch NiGHTS
2015-05-22 19:24 ` sbelmont700
2015-05-22 19:51   ` NiGHTS
2015-05-23  5:33     ` Dmitry A. Kazakov
2015-05-23  7:20       ` NiGHTS
2015-05-23  8:06         ` Dmitry A. Kazakov [this message]
2015-05-28 22:19   ` Randy Brukardt
2015-05-28 23:49     ` sbelmont700
2015-05-29 21:24       ` Randy Brukardt
2015-05-29 21:36         ` Jeffrey R. Carter
2015-05-29 22:10           ` Simon Wright
2015-05-30  0:08           ` Dennis Lee Bieber
2015-06-01 21:24           ` Randy Brukardt
2015-06-01 23:12             ` sbelmont700
2015-05-29 11:00     ` Björn Lundin
2015-05-23 20:23 ` gautier_niouzes
2015-06-02 22:33   ` NiGHTS
2015-06-03  6:42     ` Simon Wright
2015-06-03  8:27       ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox