X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: compiler error on Windows 2003 Date: Thu, 2 Apr 2009 08:20:16 -0700 (PDT) Organization: http://groups.google.com Lines: 38 Message-ID: References: NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1238685616 18150 127.0.0.1 (2 Apr 2009 15:20:16 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 2 Apr 2009 15:20:16 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: a7g2000yqk.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Apr 2, 4:24=A0am, "Tomasz Zbro=BFek" wrote: > > Hi, I have problem with compiling my application on Windows 2003, on XP > (and also on real MS-DOS with cwsdpmi) it compiles ok, but on 2003, while > compiling one of the source files I get: > > cc1plus.exe: out of memory allocating 65536 bytes after a total of 238753= 60 > bytes > > I suppose it's because of different DPMI on XP and 2003. > Do you know what is the reason of this error and how to solve the problem= ? > Or where can I read something on this ? I can't find any information abou= t > such problem. Assuming you have all the MS updates (e.g. SP2), it's probably fixed just like Vista by setting the following registry entry: HKLM\System\CurrentControlSet\Control\Wow\DpmiLimit (REG_DWORD) is the value of memory you want in bytes. Any value less than 32 MB will be raised to 32 MB. Otherwise, if that doesn't work, you'll have to use NTDPMIX (put the .DLL in %WINDIR%\SYSTEM32 and run the .EXE from CLI when needed): http://www.japheth.de/Download/NTDPMIX.zip (w/ srcs) Or just lower your optimization level to -O and use -Wl,--reduce- memory-overheads ... or run under QEMU or dual boot FreeDOS or try DOSEMU under Linux (but edit .dosemurc first!) or try DOSBox (edit dosbox.conf!) or build a Cygwin-hosted cross compiler or try OS/2 (or buy eCS) or use an old Win9x machine or e-mail it to me and I'll compile it or .... (Did I leave any stone unturned? lol) :-)