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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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 Path: g2news2.google.com!postnews.google.com!p2g2000prf.googlegroups.com!not-for-mail From: tworoses1@gmail.com Newsgroups: comp.lang.ada Subject: Re: QtSql problem Date: Sat, 7 Feb 2009 16:09:43 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <498bf574_4@news.bluewin.ch> NNTP-Posting-Host: 61.69.0.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1234051783 19243 127.0.0.1 (8 Feb 2009 00:09:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 8 Feb 2009 00:09:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prf.googlegroups.com; posting-host=61.69.0.130; posting-account=05OINgoAAADfiq4DulD09_zpTpfxY_RZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4559 Date: 2009-02-07T16:09:43-08:00 List-Id: > 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. I have been building with -g. >You might be able to use addr2line -- for example, C:\Users\Claire\Ada\movie>addr2line -e movie.exe 0x2ed1dc5 0x77cc3097 0x77 cc3069 0x77cc2efd ??:0 ??:0 ??:0 ??:0 I guess it didn't work :\ > What sort of thing is 'Filename'? It's a Qt4.Strings.Q_String The whole thing is: http://pastebin.com/f54bd5bab I get this when I go Build > Make > movie.adb in GPS: gnatmake -PC:\Users\Claire\Ada\movie\movie.gpr movie.adb -d gcc -c -g -g -I- -gnatA C:\Users\Claire\Ada\movie\movie.adb gnatbind -shared -E -I- -x C:\Users\Kyle\Programming\movie\movie.ali gnatlink C:\Users\Claire\Ada\movie\movie.ali -shared-libgcc -g - fprofile-generate -LC:\GNAT\2008\bin -lQtAdaGui -LC:\GNAT\2008\bin - lQtAdaSql -LC:\GNAT\2008\bin -lQtAdaCore -o C:\Users\Claire\Ada\movie \movie.exe [2009-02-08 10:39:33] process terminated successfully (elapsed time: 02.33s) Then I delete the file 'userdata' from C:\Users\Claire\Ada\movie\ which is the sqlite file that gets left after I run movie.exe and makes movie.exe crash if it's not deleted. Then I go Build > Run > movie.exe in GPS, uncheck Use External Terminal in the Arguments Selection box that pops up and hit OK. Then I get: C:\Users\Claire\Ada\movie\movie Execution terminated by unhandled exception Exception name: PROGRAM_ERROR Message: EXCEPTION_ACCESS_VIOLATION Call stack traceback locations: 0x2901dc5 0x77cc3097 0x77cc3069 0x77cc2efd 0x61f0129e [2009-02-08 10:46:11] process exited with status1 (elapsed time: 00.40s)