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.42.116.211 with SMTP id p19mr22291242icq.27.1413857008450; Mon, 20 Oct 2014 19:03:28 -0700 (PDT) X-Received: by 10.140.87.71 with SMTP id q65mr557qgd.39.1413857008300; Mon, 20 Oct 2014 19:03:28 -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!h18no8209110igc.0!news-out.google.com!u5ni8qab.1!nntp.google.com!w8no69846qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 20 Oct 2014 19:03:28 -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: <307b4479-1449-4de2-94ff-d960a140f198@googlegroups.com> <9ebb7994-aaf1-4eec-a335-bd72ff0acd6b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2c170b8e-f55e-4074-a1aa-287a1956ffc1@googlegroups.com> Subject: Re: Launching Popup Windows in Gnoga From: Jeremiah Injection-Date: Tue, 21 Oct 2014 02:03:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:22623 Date: 2014-10-20T19:03:28-07:00 List-Id: On Monday, October 20, 2014 8:21:34 PM UTC-4, David Botton wrote: > > Even with that change, the issue I mentioned above exists (The Constrai= nt error on IE and the popup blocked exception on FF).=20 >=20 >=20 >=20 > Ok, I can confirm both situations. I'll look in to it. (Sorry have a high= fever, so been slow today) Get some rest! No need to worry about this stuff till you feel better. I = was actually feeling a bit guilty for not spending more time flushing out m= ore details for you anyways. I've only been able to spend time at nights p= laying with it and kids make that a challenge. > > As another thought, I'm also still not 100% sure if I would have a race= condition or synchronization issue if the button was pressed twice (2 popu= ps at the same time). >=20 >=20 >=20 > I was just trying to illustrate the idea of freeing an object. I would no= t put that it production. I should have been more clear. >=20 >=20 >=20 > In Gnoga every event is a new task. It is a completely concurrent system.= The Main thread runs AWS, each connection is its own thread, etc. You can = block in any task at any time and not cause damage to the system, etc. Don't worry, I realized it was just for illustration. I was just mentionin= g that because I had guessed this was the case, but was unsure. I'm thinki= ng ahead so I want to understand how some things work under the hood. =20 I know I probably come off as a pretty big newbie (well I haven't programme= d Ada in like 7-8 years and it was Ada83...so maybe I am a quite bit of a n= ewbie), but I was definitely already thinking about how to manage it dynami= cally. I was honestly being a bit too lazy with my example (trying to get = the post in before the kids got home). Some background: My main experience when it deals with GUI development is = windows, specifically MFC...so pretty old stuff. In that environment, almo= st everything GUI related happens in the same thread so you don't have to d= eal with race conditions or synchronization unless it is with a background = thread that you spawn. All the GUI interactions happen in the main thread = using a post message model where all GUI actions place a message on a queue= and when the main thread isn't busy, it handles the next message on the qu= eue. On the one hand, it makes any code used for events like On_Click thr= ead safe with each other. However, it isn't very powerful and has a lot of= limitations. I like the Gnoga method better. It's a bit more challenging= when you are used to a single threaded model but it really just takes a di= fferent way of thinking, so I'll have to take some time and adapt.