From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada DLL called from C
Date: Tue, 9 Aug 2016 18:29:30 +0200
Date: 2016-08-09T18:29:30+02:00 [thread overview]
Message-ID: <nod0de$loo$1@gioia.aioe.org> (raw)
In-Reply-To: 1470759484.15636.87.camel@obry.net
On 2016-08-09 18:18, Pascal Obry wrote:
> Le mardi 09 août 2016 à 12:11 +0200, Dmitry A. Kazakov a écrit :
>> Does anyone use an Ada encapsulated library with C main?
>>
>> I have a problem that under Windows (MinGW) initialization runs in
>> deadlock in System.Tasking.Stages.Activate_Tasks when attempting
>> Lock_RTS. It seems that the critical section is already taken.
>
> You can't have a task (threads) created during the DLL activation. This
> is a Windows limitation.
You mean a DLL may not have library-level tasks? I was not aware of
this, but that could be the reason indeed. I have some library-level tasks.
1. Do you know the reason why?
2. Why binder does not warn me about that? It is a statically detectable
case.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2016-08-09 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-09 10:11 Ada DLL called from C Dmitry A. Kazakov
2016-08-09 16:18 ` Pascal Obry
2016-08-09 16:29 ` Dmitry A. Kazakov [this message]
2016-08-09 16:45 ` Pascal Obry
2016-08-09 17:05 ` Pascal Obry
2016-08-09 17:15 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox