Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!harvard!seismo!munnari!basser!ipso!runx!baron From: baron@runx.OZ (Jason Haines) Newsgroups: net.micro.mac Subject: Megamax execv Message-ID: <696@runx.OZ> Date: Sat, 18-Jan-86 00:13:17 EST Article-I.D.: runx.696 Posted: Sat Jan 18 00:13:17 1986 Date-Received: Tue, 21-Jan-86 07:25:10 EST Organization: RUNX Un*x Timeshare. Sydney, Australia. Lines: 29 Anyone out there ever use the execv function in the Megamax C library? I am trying to create a transfer function using it and this is is it :- transfer(arg) char *arg[]; { int err; char fname[256]; err = getfile("APPL",fname); /* getfile takes the arguments and uses SFGetFile to get the filename */ if (err) execv(fname,arg); } This function is separately compiled, and I jotted up a main to drive it :- main() { transfer(""); } This works fine, but when I try to use transfer() in a larger program, it crashes with a DS error #26 ( bad launch . Any solutions? Jason Haines ACSnet : munnari!basser!ipso!runx!baron