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: a07f3367d7,d87fe6752812f07a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!n4g2000vba.googlegroups.com!not-for-mail From: daniel.wengelin@home.se Newsgroups: comp.lang.ada Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error Date: Sat, 2 May 2009 13:31:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1e58665e-4d06-4014-8ee0-08c23574b3b3@n4g2000vba.googlegroups.com> References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> NNTP-Posting-Host: 213.80.112.56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241296265 10414 127.0.0.1 (2 May 2009 20:31:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 2 May 2009 20:31:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n4g2000vba.googlegroups.com; posting-host=213.80.112.56; posting-account=3YZVcgoAAABhquw5c8i1rhYF5PZF_gWR User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5659 Date: 2009-05-02T13:31:04-07:00 List-Id: 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, > =A0 =A0 =A0 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 you= r > "Args" parameter in the call is not setup properly. Also you might try us= ing > the full path with the program name. > > In <50d832b4-140d-4029-8d7c-939711516...@u8g2000yqn.googlegroups.com>, da= niel.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