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,FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!s20g2000yqh.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: QtSql problem Date: Fri, 6 Feb 2009 14:51:12 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <498bf574_4@news.bluewin.ch> NNTP-Posting-Host: 82.20.239.213 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1233960672 18082 127.0.0.1 (6 Feb 2009 22:51:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Feb 2009 22:51:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s20g2000yqh.googlegroups.com; posting-host=82.20.239.213; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4553 Date: 2009-02-06T14:51:12-08:00 List-Id: On Feb 6, 6:21=A0pm, tworos...@gmail.com wrote: > I should have mentioned in my first post that if I comment out the > line 'Filename :=3D Query.Value(0).To_String;' I don't get the error. Googling for 'EXCEPTION_ACCESS_VIOLATION comp.lang.ada' on Google shows this is usually puzzling and possibly stack-overflow-related. I think you need to rebuild the whole with -g (for example, gnatmake - f -g ...) to get more info about what's happening inside your main program. You might be able to use addr2line -- for example, $ addr2line -e my_program 0x2ed1dc5 0x77cc3097 0x77cc3069 0x77cc2efd 0x61f0129e However, (esp considering that you don't get the problem if you comment out that line, and that the traceback isn't very deep) it looks as though the exception is happening at the assignment rather than within the call. What sort of thing is 'Filename'?