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
Solved

DOS4GW problem.

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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…
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 for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

828 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