?
Solved

DOS4GW problem.

Posted on 1997-05-07
3
Medium Priority
?
298 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 150 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

Industry Leaders: 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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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