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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,faa1ce46f1e6dc3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada call from vc++ References: <1118124103.669346.164000@o13g2000cwo.googlegroups.com> In-Reply-To: <1118124103.669346.164000@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Tue, 07 Jun 2005 20:45:32 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1118177132 217.209.116.179 (Tue, 07 Jun 2005 22:45:32 CEST) NNTP-Posting-Date: Tue, 07 Jun 2005 22:45:32 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:11254 Date: 2005-06-07T20:45:32+00:00 List-Id: Matthias wrote: > we have an c++-application that includes a dll with adacode. Another > c++-application starts this app with CreateProcess(...). After starting > the c++-app the following error comes up: > "Program terminated by an exception propagated out of the main > subprogram. Exception raised: ADA.IO_EXCEPTIONS.USE_ERROR. Executable > name... EIP EBP..." > If we start the c++-app with the adacode dll manually there is no error > message shown. The RM says: "The exception Use_Error is propagated if an operation is attempted that is not possible for reasons that depend on characteristics of the external file." So you'll have to think of things like: Are there any differences in which files the DLL tries to access? Does the program get the same standard in, standard out and standard error files in both cases? Any parameters that might change how it operates on the files? If you have the source code it'll help you a lot if you can get a stack trace and see where the exception comes from. -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu