cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/20/12:23:27

From: Dariusz =?iso-8859-1?Q?Kie=9C?= <dark AT insert DOT com DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Dosx & FoxPro (Phar Lab) & DJGPP
Date: Wed, 20 Jan 1999 18:12:12 +0100
Organization: InsERT
Lines: 113
Distribution: world
Message-ID: <36A60E6B.8A26E493@insert.com.pl>
References: <199901200955 DOT KAA29286 AT login-2 DOT eunet DOT no>
NNTP-Posting-Host: r1-inet.insert.igo.wroc.pl
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en,pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Gisle Vanem wrote:
[...]
> The original poster may add more debug to the DOSX variable:
> 
> SET DOSX=-debug xxxxh
> 
> where each bit in xxxx enables specific trace messages. He might try
> SET DOSX=-debug 1003h

When I set "SET DOSX=-debug 1003h" in autoexec on Windows NT 4.0/SP4 and
run FoxPro I get:

386|DOS-Extender 5.0 -- Copyright (C) 1986-93 Phar Lap Software, Inc.
Serial Number DE1-9224
CPU is an 80486
IBM PC or compatible, bus type is ISA
DOS version = 5.0
XMS version = 2.0
DPMI version = 0.90
Opening EXP file: D:\FPD26\FOXPROX.EXE
386|DOS-X PSP at 0E54h
DOS-X current code/data size = 182640 bytes
   Worst-case reduced size = 150848 bytes
   Min reduced size = 63984 bytes
   Min reduced size if -DEBUG not used = 60928 bytes
287 or 387 coprocessor present
48 bytes alloc'd for DPMI host buf at 9FFCh
3072 bytes alloc'd for DPMI raw mode switching stacks at 9F3Bh
Allocated interrupt stacks at para 9DBAh
Calling DPMI to enter prot mode
DPMI state save buf size=0 bytes
DPMI host page size = 4096 bytes
DOS-X code selector = 01C7h, data = 019Fh, DOS mem = 01CFh
IRQ0 originally at 0008h, IRQ8 at 0070h
Installing real mode interrupt handlers
Installing interrupt filters
Initializing memory allocator
DPMI host won't map Weitek memory;  -WEITEK OFF forced
Attempting to move prot mode code to extended mem
Prot mode code moved to ext mem
Shrinking DOS-X code/data size to 63984 bytes
192 bytes alloc'd for conv mem block at para 1DF4h
65520 bytes alloc'd for DOS data buf at para 8DB9h
Loading EXP file: D:\FPD26\FOXPROX.EXE
256 bytes alloc'd for appl PSP at para 9DA9h
1408 bytes alloc'd for appl env at para 9D50h
65520 byte DOS data buffer re-alloc'd at para 8D50h
Unpacked EXP file, image size = 001685A0h bytes at offset 0002E0D4h in
file
MINPG = 00000189h, MAXPG = 000FFFFFh, stack bytes = 00000000h
OFFSET pages = 00000001h, REALBREAK pages = 00000000h, VM handle =
FFFFFFFFh
Seg base addr = 01F10000h, # virt pgs = 00000189h, # phys pgs =
00000000h
394 4K memory pages allocated for pgm
4234 total 4K memory pages available on system
    4234 pages from direct extended memory
A minimum of 393 memory pages required to run pgm
1 pages needed for 386|DOS-Extender system data
    1 pages allocated from available page total
596656 bytes conventional memory available
455904 bytes conventional memory left free
    -MINREAL 0000h, -MAXREAL FFFFh
140752 bytes conventional memory used
    208 bytes for application program
    64000 bytes for 386|DOS-Extender code and data
    1696 bytes for application's PSP and environment
    6160 bytes for stack buffers
        -NISTACK 6, -ISTKSIZE 1
    64 bytes for DPMI host buffer
    3088 bytes for DPMI raw mode switching stacks
    65536 bytes for data buffer for DOS calls
        -MINIBUF 1, -MAXIBUF 64
Transferring control to appl program

// Here I run my DJGPP program. When I run fifth time I get:

Phar Lap fatal err 10049: Ran out of stack buffers
Terminating appl pgm
Pgm terminate complete
Removing all real mode interrupt handlers

???
 
> > 2. When I run FoxPro form DOS, and when I run DJGPP program, this
> > situation not exist too.
> 
> This means you could solve the problem easily by running from the
> DJGPP port of Bash, for example.

When I run Bash from FoxPro and when DJGPP program from Bash I get on
thid time:

Abnormal program termination: Memory protection fault
CS:EIP = 00C7h:00003A05h

???

I use DJGPP 2.02 and my program is:

int main()
{
  return 0;
}


Thanks!!!
dark

-----------------------------------------------
Dariusz Kies, dark
InsERT, dark AT insert DOT com DOT pl
-----------------------------------------------

- Raw text -


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