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,86f12c6cc81fafe X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: "Jade" Newsgroups: comp.lang.ada Subject: Re: exception access violation Date: 14 Nov 2006 11:34:43 -0800 Organization: http://groups.google.com Message-ID: <1163532883.352177.211940@m73g2000cwd.googlegroups.com> References: <1163446297.630444.280740@b28g2000cwb.googlegroups.com> <4rtfa8FsioqkU1@mid.individual.net> NNTP-Posting-Host: 209.29.50.252 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1163532889 26910 127.0.0.1 (14 Nov 2006 19:34:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 14 Nov 2006 19:34:49 +0000 (UTC) In-Reply-To: <4rtfa8FsioqkU1@mid.individual.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=209.29.50.252; posting-account=cGfZ6A0AAADiThp2Tk8usIOv1Wx0_xzX Xref: g2news2.google.com comp.lang.ada:7453 Date: 2006-11-14T11:34:43-08:00 List-Id: I shuffled around my code and the error is now Exception Name => STORAGE_ERROR Exception Message => stack overflow (or erroneous memory access) I must adjust the stack size either thru gnatbind or gnatlink. Not sure what is best. Jade. Alex R. Mosteo wrote: > Jade wrote: > > > Hi, > > I am compiling a program with gnat gps and I am receiving an access > > violation error. And my program crashes at this point. > > I'm not sure if you refer to the compilation crashing or your program > crashing on execution. It seems this latter one. > > > Exception raised > > >>> Exception Name => PROGRAM_ERROR > >>>> Exception Message => EXCEPTION_ACCESS_VIOLATION > > Does anyone know what this could mean? > > This is typical of dangling pointers. I.e. you're accessing deallocated > memory. Are you managing some heap memory by hand? If so, I'd suggest using > gdb to get backtraces and/or GNAT.Debug_Pools to aid in the diagnose (if > you're using GNAT obviously) as a first step.