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 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How can I loose the cmd window from my GtkAda app? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 12 May 2009 11:24:52 +0200 Message-ID: NNTP-Posting-Date: 12 May 2009 11:24:52 CEST NNTP-Posting-Host: 4b97ca87.newsspool1.arcor-online.net X-Trace: DXC=5gU3H5QcF==kUFX=Y?aLP;ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9?e[kjDe[Ce8DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2YUbo3M;1m]0 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:5782 Date: 2009-05-12T11:24:52+02:00 List-Id: On Tue, 12 May 2009 10:13:04 +0200, Jean-Pierre Rosen wrote: > Dmitry A. Kazakov a �crit : >> Yes, however I would prefer to have it enforced by gtkada.gpr, rather than >> contaminating the application's gpr which with-es gtkada.gpr. Unfortunately >> I know no way to do this in a library project. >> > I don't think it would be a good idea, because sometimes you do want > that window (to get simple traces with Text_IO for example). And (AFAIK) > there is no option to cancel a -mwindows option. Using standard output is kind of "erroneous" in gtkada applications. Under Windows it will most likely crash the application (due to Use_Error, I guess). For tracing I am using a GTK window, which is much simpler than text tracing. It also allows to stop the application at the tracing point, catch GTK/Glib errors with stack backtracing etc. BTW, when running under GPS, output to the standard output works even with -mwindows. But the point was that -mwindows is just one example of what a library project could like to pass to the clients. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de