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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error Reply-To: anon@anon.org (anon) References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 02 May 2009 04:16:20 GMT NNTP-Posting-Host: 12.64.126.217 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1241237780 12.64.126.217 (Sat, 02 May 2009 04:16:20 GMT) NNTP-Posting-Date: Sat, 02 May 2009 04:16:20 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:5649 Date: 2009-05-02T04:16:20+00:00 List-Id: 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 your "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-9397115160ba@u8g2000yqn.googlegroups.com>, daniel.wengelin@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