From: Lord Shaman Newsgroups: comp.os.msdos.djgpp Subject: Re: windows <-> cwsdpmi Date: Thu, 19 Dec 1996 09:55:39 +1100 Organization: Lord Shaman Lines: 38 Distribution: inet Message-ID: <32B8766B.318B@nlc.net.au> References: Reply-To: shaman AT nlc DOT net DOT au NNTP-Posting-Host: dialine29.nlc.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Eli Zaretskii DJ-Gateway: from newsgroup comp.os.msdos.djgpp > > What is the difference with the memory handling between cwsdpmi and > > windows dpmi. I have a program that runs fine with windows but when I start > > it with cwsdpmi it starts to swap (major swap). I thought I should get more > > memory with cwsdpmi then with windows. > > I do some big allocs in the beginning and clears them. It's approx 8 megs > > I alloc. And it doesn't swap when run from windows. (I have 16 meg). And > > don't say that I should by more memory, because that's not the problem.. > Interestingly, I've had similar problems. I wrote a program which handles huge amounts of maths tables. (13 megs) I thought that it would fit considering I've got 16M and dos only uses 600k or so. I tried to allocate the memory using "new" in 1 meg blocks, but I could never allocate more than 8 megs! It just said it ran out of memory and crashed to dos. The code at the time was simple, basically all it did was allocate the memory and nothing else. I tried every bootup (except windows, because I really didn't expect 13M to be free out of 16M under 95), but nothing worked. Odd. If this guy has the same problem, and he is allocated 8 megs on a 16 meg system, then he'd run out of memory because his program and DOS might take up enough to "go over the edge". Maybe cwsdpmi detects the "out of memory" and starts using virtual memory. My program didn't do that because I use cwsdpr0. I hope this helps. -- . . . the Lord Shaman ------------------------------------------------------------------ There are only three kind of mathematicians: Those who can count and those who can't. http://www.nlc.net.au/~shaman or mailto:shaman AT nlc DOT net DOT au ------------------------------------------------------------------