From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Date: Tue, 18 Oct 2022 08:30:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Newsgroups: comp.lang.ada Content-Language: en-GB From: ldries46 Subject: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Organization: KPN B.V. Path: eternal-september.org!reader01.eternal-september.org!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail Injection-Date: Tue, 18 Oct 2022 08:30:36 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" X-Received-Bytes: 1673 Xref: reader01.eternal-september.org comp.lang.ada:64521 List-Id: I have the following problem, which I can solve in my case but I still want to know how to solve in a general way. Case: In an Ada program I use the Gtk Filechooser with the On_OK routine. In that routine I read the chosen file and start some other calculations I need to do on that file (call for a new dialogue witin a callback from a higher level).  But these calculations are depending on the extension of the file. In some cases I even need another dialogue to decide which type o f calculations I have to follow. The program can only go on after this manual choice is made. But I see that the program goes on without waiting on that last dialogue to be closed. Is there a way in Gtk to solve this or in Ada to block that obvious parallel processing or must I look for a solution within the operating system (Windows 11)