Re: Call Ada Dll from vc

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



This sounds like a problem in your Ada runtime. It has been too many years since I looked
at Ada, but I suspect the concept of staic constructors has an equivalent. Or it could be
a failure in the initialization of the Ada runtime. Try posting this question on an Ada
newsgroup.

Note that the DllMain of the Ada DLL will be implemented before your main function, and
any static C++ constructors or constructors invoked as a consequence of static
constructors will also execute, and these could be calling your Ada runtime.

There are thousdands or hundreds of thousands of instructions that can execute before main
is called in C++. If these call the Ada DLL, they could be calling it before it is
properly initialized because initialization may require a call from your C++ code.

joe

On 10 Jun 2005 00:18:55 -0700, "Matthias" <ichwarteaufmail@xxxxxxxx> wrote:

>Hi all,
>
>my last ada problem is solved, but I have a new problem. I use an ada
>dll from a vc program. Sometimes (not everytime) with starting the c++
>application it ends with following message: "ERROR: Infinite loop
>detected in Ada exception manager, EIP=0067d878".
>If I debug the c++ code this message is shown before the main-function.
>Anybody knows what (of an ada dll) is called before the main-function?
>No ada functions will be called before the main-function. You see I
>don't know much about ada and dlls.
>
>Regards
>
>Matthias

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Ada runtime and Linux Kernel Module
    ... > The Big Online Book of Linux Ada Programming ... > Any module would need to avoid anything which used the ada runtime. ... > Or indeed any example ADA linux module code! ...
    (comp.lang.ada)
  • Re: Hello World 217Kb ?
    ... > even for O/S projects, I didn't find this to be very useful! ... but we could write an Ada runtime in Ada using the pragma No_Run_Time, ...
    (comp.lang.ada)
  • Structural unification (pattern matching) in Ada [was: Re: S-expression I/O in Ada]
    ... and the unification engine answers ... if the object could be obtained by the sequence of constructors, ... There is one step required for Ada, ... Objective Caml is also a compiled language, I don't really follow your point. ...
    (comp.lang.ada)
  • Re: Constructing an object
    ... I don't think that would work for Ada as it is currently ... > They aren't extensible in the sense that you can only override or inherit. ... > It is too dangerous for constructors and assignments. ... it is real easy to forget to call the Finalize for the parent ...
    (comp.lang.ada)
  • Re: Inherited Methods and such
    ... The point is that in NO typed language a constructor can be ... insertions in the generated constructors at the points, ... Ada keeps on trying to use only magic. ... discriminants, and even the components that exist depends on those values. ...
    (comp.lang.ada)