Date: Sun, 7 Jul 2002 08:13:49 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: =?iso-8859-1?Q?Sebasti=E1n_Tobar?= cc: djgpp AT delorie DOT com Subject: Re: spawnv problem In-Reply-To: <001e01c2251c$7503f1e0$f5064c40@pc1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 6 Jul 2002, =?iso-8859-1?Q?Sebasti=E1n_Tobar?= wrote: > The program works fine in a dos box (Win95), but from FreeDOS, OpenDOS > I get an: Page Fault cr=2... in RMCB at eip=.... > Invalid TSS in RMCB at eip=..... > If I start W95 in MS-DOS mode the program get me the same error. > > Thanks. > Sorry about my english!! > > void main() > { > char *args[] = { > "mpxplay", > 0 > }; This is wrong. Try this instead: char *args[] = { "mpxplay", "mpxplay", 0 }; You need to mention "mpxplay" twice: once for spawnv to find the program, the other time as argv[0] to be passed to the program.