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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ba2c2b03c5dfa79 X-Google-Attributes: gid103376,public From: Dave Ptacek Subject: Re: Program errors during initialization Date: 2000/04/12 Message-ID: <38F4A30F.680D52F5@collins.rockwell.com>#1/1 X-Deja-AN: 610280465 Content-Transfer-Encoding: 7bit References: <38F33492.D5A738E9@collins.rockwell.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Rockwell International Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-12T00:00:00+00:00 List-Id: After further inspection, I find error 193 is likely to be an error passed back by NT. If I try to run the app by itself (without using AdaGIDE or gnat / gdb tool to launch it), I get a dialog box with "....exe is not a valid Windows NT application" error message. So after some trial and error sessions, I find this error surfaces whenever I have code calling services in a .DLL for a particular piece of hardware in the PC. What would make gnat generate an invalid NT application based on whether an external .DLL file is being used? I'm assuming stuff like this works with gnat, I just don't have something configured correctly. This is really a simple console mode type of program. thanks, Dave Dave Ptacek wrote: > Hi, > > Config: gnat 3.12.p, gdb 4.17, host and target Windows NT 4.0. > > After successfully building my program, I tried running it and it > terminates immediately, so I fired up gdb to debug the problem. I > placed breakpoints on the main procedure line "procedure main", on the > first line after the begin statement, and used the "break exception" > command. I then pressed Start, none of the breakpoints tripped and I > get the following error message in the Command Buffer: Error creating > process ...{program name}, (error 193). > > I'm guessing there's an elaboration problem, but how do I go about > finding it? I'm pretty new to both gnat and gdb, what debugging > techniques can I use in gdb to isolate the problem? I have built > example programs and run gdb on them just to get familiar with gdb and > it appears to work fine so I'm pretty sure it's not a toolset problem. > > Any ideas? > > thanks, > > Dave