delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/26/06:48:31

From: Volker Oth <VolkerOth AT aol DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem spawning Pmode/w !!!
Date: Mon, 26 May 1997 09:25:02 +0200
Organization: University of Karlsruhe, Germany
Message-ID: <33893ACE.400@AOL.COM>
References: <338569FE DOT 12A809A0 AT aol DOT com>
Reply-To: VolkerOth AT aol DOT com
NNTP-Posting-Host: rzstud2.rz.uni-karlsruhe.de
Mime-Version: 1.0
NNTP-Posting-User: uj55
Lines: 72
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ok, some more info on my spawning problem:

Minimized example code:
-------------------------------------------------------------------

/* crash example for spawning a pmode/w program */
/* in this case, genem 0.19 is spawned and runs, but when exited */
/* the spawning program crashes */

#include <process.h>
#include <sys/exceptn.h>
#include <stdio.h>

char *args[] = {
       "genem.exe",
       /*
       "-z80",
       "-modex",
       "alexkidd.smd",
       */
       0
     };

int main()
{
  __djgpp_exception_toggle();
  spawnvp(P_WAIT, "genem.exe", args);
  __djgpp_exception_toggle();
  puts("ok\n");
}
-----------------------------------------------------------

Redir output 

PMODE/W DOS Extender v1.24

Copyright (C) 1994-1996, Charles Scheffold and Thomas Pytel 

GenEm 0.19  PUBLIC-BETA -  SEGA Genesis/Mega Drive Emulator
(c) 1996/97 by Markus Gietzen

Usage:  genem [-options] rom-image

Options:
-frame  x   - display every x.th frame (2=default)
-modex      - enable 320x240 display
-nojoy      - disable PC-joypad support
-nosound    - disable sound
-calib      - calibrate PC-joystick
-z80        - ENABLE Z80-emulation
-fakedz80   - FAKE Z80-emulation
-europe     - European version   |\  USA is
-japan      - Japanease version  |/  default.

Supported file-formats:
 o .bin         binary dumps
 o .md, .mgd    Multi Game Doctor II
 o .smd         Super Magic Drive
General Protection Fault at eip=24cf; flags=3012
eax=00011229 ebx=000000af ecx=02fb8310 edx=c4830000 esi=00000002
edi=00002eb4
ebp=0000000d esp=00011258 cs=a7 ds=af es=af fs=cf gs=ff ss=af error=0000
Page fault cr2=1000000b at eip=7307; flags=3246
eax=00000300 ebx=00000021 ecx=00000000 edx=0000000b esi=00055090
edi=000534f0
ebp=0005338c esp=00053380 cs=a7 ds=af es=b7 fs=8f gs=bf ss=af error=0006

------------------------------------------------------------------------
Any help appreciated...

regards,
vOlker

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019