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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: More reliable compilers (of some programming langauges) than GNAT Date: Thu, 23 Nov 2017 18:00:18 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <2fca0f38-833e-485d-9a38-febcdd507bb1@googlegroups.com> <1511453648.2601.30.camel@obry.net> NNTP-Posting-Host: MajGvm9MbNtGBKE7r8NgYA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: feeder.eternal-september.org comp.lang.ada:49118 Date: 2017-11-23T18:00:18+01:00 List-Id: On 2017-11-23 17:14, Pascal Obry wrote: > Le jeudi 23 novembre 2017 à 09:22 +0100, Dmitry A. Kazakov a écrit : >> There is an issue with Windows DLL which must be addressed. When >> tasks are used explicitly or implicitly Ada RTL initialization will >> hang if done from PROCESS_ATTACH. > > That's a windows limitation. Nothing GNAT can do about. It can do task initialization of tasks outside PROCESS_ATTACH where threads are suspended. Presently the solution is to disable automatic initialization and call it manually at first use of the library interface. Clearly compiler can do that much better than programmer. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de