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,58ca990a20ca948e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 06 Feb 2009 09:31:51 +0100 From: Gautier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.18) Gecko/20081031 SeaMonkey/1.1.13 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: QtSql problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.0.235.146 X-Original-NNTP-Posting-Host: 85.0.235.146 Message-ID: <498bf574_4@news.bluewin.ch> X-Trace: news.bluewin.ch 1233909108 85.0.235.146 (6 Feb 2009 09:31:48 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:3576 Date: 2009-02-06T09:31:51+01:00 List-Id: Vadim Godunko wrote: > Can you please rebuild your program with the -E binder's switch? This > enables to store traceback information in the exception occurrence, so > we can see where the exception occurs. He also may need to display the traceback... ------------------------------------------------------------------------------ -- File: TB_Wrap.ads -- Description: Trace-back wrapper for GNAT 3.13p+ (spec.) ------------------------------------------------------------------------------ generic with procedure My_main_procedure; procedure TB_Wrap; ------------------------------------------------------------------------------ -- File: TB_Wrap.adb -- Description: Trace-back wrapper for GNAT 3.13p+ (body) ------------------------------------------------------------------------------ with GNAT.Traceback.Symbolic, Ada.Exceptions, Ada.Text_IO; use Ada.Exceptions, Ada.Text_IO; procedure TB_Wrap is -- pragma Compiler_options("-g"); -- pragma Binder_options("-E"); begin My_main_procedure; exception when E: others => New_Line; Put_Line("--------------------[ Unhandled exception ]-----------------"); Put_Line(" > Name of exception . . . . .: " & Ada.Exceptions.Exception_Name(E) ); Put_Line(" > Message for exception . . .: " & Ada.Exceptions.Exception_Message(E) ); Put_Line(" > Trace-back of call stack: " ); Put_Line( GNAT.Traceback.Symbolic.Symbolic_Traceback(E) ); end TB_Wrap; _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!