www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/23/11:58:56

Message-ID: <31053719.295C@eelab.newpaltz.edu>
Date: Tue, 23 Jan 1996 11:29:29 -0800
From: John Fortin <fortin44 AT eelab DOT newpaltz DOT edu>
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: djgpp in windows 3.11 DOS window
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960123075808 DOT 7325D-100000 AT is>

Eli Zaretskii wrote:
> 
> Win3.1 does run in protected mode, but its protection is only up to a
> point.  I've seen cases when commercial programs has crashed and brought
> down the entire system with them.  DOS boxes are protected less than
> native Windows programs (as far as I know) because they don't run in
> their private address space.
> 
> For DJGPP programs, the first place to look is where you call software
> interrupts directly (through `int86', `intdos', `_go32_dpmi_simulate_int'
> and the like.  You can thrash your disk easily with a wrong value in a
> wrong register.  I don't think the ``memory overlapping'' is an issue,
> because GO32 relies on Windows for memory management when you run your
> programs in DOS box.  Only outside Windows does GO32 manage the memory
> itself (and even then it uses services of memory managers like EMM or
> QEMM if present).

I have kind of the same problem.... I can compile, link, and execute in DOS using V2
with LD.exe from 1.11m5  (LD.exe from V2 gives errors... memory exausted, cannot read symbol.... 
etc) When I try to do the same from a DOS box in WIN3.1,  it just goes, and goes, and goes, and 
never, ever, stops (I let it go for 3 hours just to see what would happen!!!)  I tried to use 
go32-V2, but got the 'cannot find go32/v1' error.  

The program is from the RSXWDK system whello.cpp.  Like I said, it compiles fine in plain dos,
but not the dos box..

Any ideas???

- Raw text -


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