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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.43.70.80 with SMTP id yf16mr1330528icb.13.1413244740239; Mon, 13 Oct 2014 16:59:00 -0700 (PDT) X-Received: by 10.140.94.44 with SMTP id f41mr20424qge.5.1413244740097; Mon, 13 Oct 2014 16:59:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!uq10no10197775igb.0!news-out.google.com!i10ni84qaf.0!nntp.google.com!dc16no2667088qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 13 Oct 2014 16:58:59 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.44.225.195; posting-account=vk6_JwoAAABkMyHO1YfdP69Hm3CpbdGR NNTP-Posting-Host: 108.44.225.195 References: <13fb4505-4abd-4d5b-b18d-d05aa0a4dcb9@googlegroups.com> <32414aa2-3a0f-41fc-aef3-d8db709aacfc@googlegroups.com> <0b5ee58b-2d2d-4394-8215-0fa5d1a4740e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2d0855ce-ab41-4326-9e88-928079a4e367@googlegroups.com> Subject: Re: Gnoga Latest Updates From: Jeremiah Injection-Date: Mon, 13 Oct 2014 23:59:00 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:22436 Date: 2014-10-13T16:58:59-07:00 List-Id: On Monday, October 13, 2014 7:34:43 PM UTC-4, David Botton wrote: > > I chose singleton because it fits what I need at a glance. =20 >=20 >=20 >=20 > No, better we improve Gnoga to make sure that Singleton at first glance d= oes what is needed. >=20 >=20 >=20 > > The main thing is if I close the browser window, then in my code Gnoga.= Application.Singleton.Message_Loop still hangs as if it is waiting.=20 >=20 >=20 >=20 > Confirmed. You are right this should not be the case. On Destroy on the m= ain window should do the job. >=20 >=20 >=20 > I'll confirm in a bit. If it does or doesn't I will make some adjustments= to handle this case and push the code to git in asap and repost. >=20 >=20 >=20 > > I definitely will look at multiconnect for some projects I have, but I = still want to make sure I have some applications for my coworkers to use in= our lab (configure some devices). I just have to make sure they aren't ha= ving to do stuff at the command prompt if I can avoid it. >=20 >=20 >=20 > It is important to me that Singleton does the job right :) >=20 >=20 >=20 > Thanks for pointing this out back in a flash. >=20 >=20 >=20 > David Botton Thank you for taking a look at it. I did test Connection.Hold between my l= ast post and reading your most recent. Hold did correctly release when the= browser closed or changed page or reloaded. I did notice that my main pro= gram did not finish though (still required a control-C). My console output= acted as if it would. I am guessing something is not finalizing correctly= (probably due to my misuse of a component). code: with Gnoga.Gui.Window; with Gnoga.Gui.View; with Gnoga.Application.Multi_Connect; with Gnoga.Types; with Ada.Text_IO; use Ada.Text_IO; procedure Main is =20 type App_Data is new Gnoga.Types.Connection_Data_Type with record=20 My_View : Gnoga.Gui.View.View_Type; end record; type App_Access is access all App_Data; =20 procedure On_Connect (Main_Window : in out Gnoga.Gui.Window.Window_Type'Class; Connection : access Gnoga.Application.Multi_Connect.Connection_Holder= _Type) is App : App_Access :=3D new App_Data; begin Main_Window.Connection_Data (App.all);=20 App.My_View.Create (Main_Window); =20 Put_Line("Connection Started"); =20 Connection.Hold; =20 Put_Line("Connection Finished"); Gnoga.Application.Multi_Connect.End_Application; end On_Connect; =20 =20 begin Gnoga.Application.Title("Hello World"); Put_Line("Hello World"); Gnoga.Application.Multi_Connect.Initialize; =20 Gnoga.Application.Multi_Connect.On_Connect_Handler (Event =3D> On_Connect'Unrestricted_Access, Path =3D> "default");=20 =20 Gnoga.Application.Multi_Connect.Message_Loop; Put_Line("Application finished"); end Main; Output: C:\Users\Jere\Programming\ada\workspace\Test_Gnoga\exec\main Hello World Starting Web Server with web root at ../ Starting Gnoga Server on :8080 Connection Started Connection Finished Application finished Even though the "Application finished" pops up, the application continues t= o run without exiting. This is based off the previous build I just realize= d, so I'll have to go back and update again to retest