comp.lang.ada
 help / color / mirror / Atom feed
From: David Botton <david@botton.com>
Subject: Re: Gnoga Latest Updates
Date: Mon, 13 Oct 2014 14:12:45 -0700 (PDT)
Date: 2014-10-13T14:12:45-07:00	[thread overview]
Message-ID: <32414aa2-3a0f-41fc-aef3-d8db709aacfc@googlegroups.com> (raw)
In-Reply-To: <m1h5kc$259$1@dont-email.me>

> 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

  reply	other threads:[~2014-10-13 21:12 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12  3:49 Gnoga Latest Updates David Botton
2014-10-12 19:37 ` David Botton
2014-10-12 22:58   ` tonyg
2014-10-12 23:29     ` David Botton
2014-10-28 10:18       ` tonyg
2014-10-13  0:25     ` Jeffrey Carter
2014-10-13  0:12 ` David Botton
2014-10-13  6:05   ` David Botton
2014-10-13 16:22 ` jeremiah.breeden
2014-10-13 18:28   ` Simon Clubley
2014-10-13 21:12     ` David Botton [this message]
2014-10-13 21:20       ` David Botton
2014-10-13 23:29       ` Jeremiah
2014-10-13 23:34         ` David Botton
2014-10-13 23:58           ` Jeremiah
2014-10-14  2:38             ` David Botton
2014-10-14  2:45               ` David Botton
2014-10-14  0:06           ` David Botton
2014-10-14  0:24             ` David Botton
2014-10-14  2:26               ` David Botton
2014-10-15  2:01                 ` Jeremiah
2014-10-15  3:49                   ` David Botton
2014-10-14 23:52 ` David Botton
2014-10-15  0:30   ` David Botton
2014-10-15 15:54 ` David Botton
2014-10-19  4:40 ` David Botton
2014-10-19 12:59   ` David Botton
2014-10-19 21:36     ` Jeremiah
2014-10-19 22:01       ` David Botton
2014-10-19 23:02 ` David Botton
2014-10-20  0:42   ` Jeffrey Carter
2014-10-20 20:38     ` David Botton
2014-10-22  2:11       ` David Botton
2014-10-23  3:46         ` David Botton
2014-10-24  3:54           ` David Botton
2014-10-26  4:22             ` David Botton
replies disabled

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