comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: Ada DLL called from C
Date: Tue, 09 Aug 2016 18:18:04 +0200
Date: 2016-08-09T18:18:04+02:00	[thread overview]
Message-ID: <1470759484.15636.87.camel@obry.net> (raw)
In-Reply-To: nocaa5$1hvj$1@gioia.aioe.org

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.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

  reply	other threads:[~2016-08-09 16:18 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 [this message]
2016-08-09 16:29   ` Dmitry A. Kazakov
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