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: a07f3367d7,d87fe6752812f07a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,GB Path: g2news2.google.com!postnews.google.com!u39g2000pru.googlegroups.com!not-for-mail From: Hang Newsgroups: comp.lang.ada Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error Date: Sat, 2 May 2009 19:22:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2e37ca19-64c8-4bf0-880a-47e2706234e9@u39g2000pru.googlegroups.com> References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> <1e58665e-4d06-4014-8ee0-08c23574b3b3@n4g2000vba.googlegroups.com> NNTP-Posting-Host: 24.5.219.240 Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241317365 4697 127.0.0.1 (3 May 2009 02:22:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 3 May 2009 02:22:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u39g2000pru.googlegroups.com; posting-host=24.5.219.240; posting-account=MlZyyQoAAADKyeeGjhq7-IO7wNqF7Adf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5664 Date: 2009-05-02T19:22:45-07:00 List-Id: On 5=D4=C22=C8=D5, =CF=C2=CE=E71=CA=B131=B7=D6, daniel.wenge...@home.se wro= te: > On 2 Maj, 06:16, a...@anon.org (anon) wrote: > > > > > First, in GNAT GPL 2008, GNAT.OS_LIB renames System.OS_LIB, so using > > GNAT.OS_LIB would be a waste of time. > > Note: Spawn and Ada task can have problems. Should be avoided. Also, > > in some case "spawn" is disabled. > > > Second, it would be helpful to give some code. > > > In the mean time, using the simple routine version it sounds like its y= our > > "Args" parameter in the call is not setup properly. Also you might try = using > > the full path with the program name. > > > In <50d832b4-140d-4029-8d7c-939711516...@u8g2000yqn.googlegroups.com>, = daniel.wenge...@home.se writes: > > > >Though not an Ada issue, really, someone here might have had the same > > >problem as I have had: I tried to make a small program start another > > >program using System.OS_Lib.Spawn. However, it raised Program_Error > > >and stated Exception_Access_Violation. > > > >Any ideas why, and what to do about it? > > > >/D > > Thanks, fixing the Args sorted the problem out. I need to practice > more on the unconstrained string access array types 8-/ > /D Sorry for previous post - I was thinking the sample program was posted by Daniel, I should have read things carefully.