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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.37.200 with SMTP id a8mr829495pdk.1.1413234765503; Mon, 13 Oct 2014 14:12:45 -0700 (PDT) X-Received: by 10.182.84.136 with SMTP id z8mr7853oby.28.1413234765396; Mon, 13 Oct 2014 14:12:45 -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!uq10no10127129igb.0!news-out.google.com!rp1ni29760igb.0!nntp.google.com!h18no5526595igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 13 Oct 2014 14:12:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.176.73.77; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 66.176.73.77 References: <13fb4505-4abd-4d5b-b18d-d05aa0a4dcb9@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <32414aa2-3a0f-41fc-aef3-d8db709aacfc@googlegroups.com> Subject: Re: Gnoga Latest Updates From: David Botton Injection-Date: Mon, 13 Oct 2014 21:12:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22431 Date: 2014-10-13T14:12:45-07:00 List-Id: > Question: Is there currently or will there be a way to tell when the > user closes the browser window or navigates to a different URL? There are a few ways, the simplest is in the On_Connect procedure use Connection.Hold at the end, if the connection is lost the semaphore will release and you can add clean up code there before anything finalizes on its own. > > I am using Tutorial 2 as base example for this, but when a user does > > the following: Remember Tutorial 2 is using a "Singleton" model, one time run. Good for tools and single runs from the command line, etc. If you leave the page it will always close the connection on a singleton permanently. It should close the application as well. I'll double check to make sure that is the case. You should consider basing off of one of the later multi_connect tutorials if you think more than one connection will exists or running on the internet. See the snake demo for a full example. David Botton