comp.lang.ada
 help / color / mirror / Atom feed
From: rieachus@comcast.net
Subject: Re: Application Crashes when linked with DLL
Date: Tue, 12 Jul 2016 16:08:51 -0700 (PDT)
Date: 2016-07-12T16:08:51-07:00	[thread overview]
Message-ID: <08db03b5-dad4-4a03-8b79-95049e081843@googlegroups.com> (raw)
In-Reply-To: <fdde56ea-05e6-406d-b129-00839c02c7e4@googlegroups.com>

On Tuesday, July 12, 2016 at 3:50:09 PM UTC-4, Aurele wrote:
> Hi o/, I'm working with Gautier and we stumbled on an interesting program behavior and thought of sharing it with you for comments. We are using the latest version (2016) of Adacore GNAT programming studio. Here is the problem:  
> 
> Create a dynamic link library (DLL) and link it to an separate application. The application crashes with the message "This application as requested the runtime to terminate in an unusual way. Specifically, the problem is caused by the exception block in the application.  Remove it and all is well.

Two things. First, the message you are seeing comes from Windows.  At least, I have seen it in other cases where a DLL failed.

Second, why are you overloading Constraint_Error?  It may be perfectly legal, but what happens when you run some code from the Ada run-time where Constraint_Error is suppressed?  Try commenting out the declaration of Constraint_Error, or do a global change of Constraint_Error in your code to something else.  The problem with renaming Constraint_Error is that in some places in the Ada run-time and environment it may be raised or referred to by name, and in other cases implicitly such as out of range assignments or pragma Suppress.


  reply	other threads:[~2016-07-12 23:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-12 19:50 Application Crashes when linked with DLL Aurele
2016-07-12 23:08 ` rieachus [this message]
2016-07-13  0:16   ` Aurele
2016-07-13 17:06   ` Aurele
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox