Mail Archives: djgpp/2002/07/07/01:39:11
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.
- Raw text -