Solved

DOS4GW problem.

Posted on 1997-05-07
3
290 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

770 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