Solved

DOS4GW problem.

Posted on 1997-05-07
3
293 Views
Last Modified: 2010-04-15
I've got the problem with DOS4GW dos extender for Watcom C.
I would like to make it not to allocate the whole available
extended memory. I need it to spawn another DOS4GW program
from main module.
0
Comment
Question by:lenin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
icd earned 50 total points
ID: 1250291
I suggest you look at the functions available for TSRs written with DOS4GW since these programs must solve a similar problem.

I can't give you a direct answer since I only have the manual for the 16 bit version.

If this does not help then just reject my answer.
0
 

Expert Comment

by:eljainc
ID: 1250292
I am new to the DOS4GW DOS extender environment, but it seems to me that you
can increase/limit the amount of memory that a program using the extender will use.
This is done by setting by using the DOS4GVM environment variable:

SET DOS4GVM=virtualsize#(memsize)

The "memsize" will be the amount of RAM to limit (in KB)

Thus, if you wanted to limit the amount of memory to 8 Megabytes, you would do something
like:

SET DOS4GVM=virtualsize#8000

Hope this helps
0
 

Expert Comment

by:tdxh
ID: 1250293
If you need it to spawn another DOS4GW program
from main module, you must remember to set the __minreal to
set aside some DOS memory. The __minreal is a public variable,
you can set it as:
    unsigned __near __minreal = 100 * 1024;
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question