home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!netcomsv!proto!joe
- From: joe@proto.com (Joe Huffman)
- Subject: Re: Allocating arrays larger than 64K with new?
- Organization: Prototronics @ Sandpoint, Idaho
- Date: Sat, 15 Aug 1992 07:02:00 GMT
- Message-ID: <1992Aug15.070200.9770@proto.com>
- References: <1992Aug9.152253.11345@newshub.sdsu.edu> <894@nazgul.UUCP> <f94m37_.feustel@netcom.com> <BsxEsH.Eso@wpi.WPI.EDU>
- Lines: 50
-
- ajb@winton.uucp (Arthur J. Butler) writes:
-
- >In article <f94m37_.feustel@netcom.com> feustel@netcom.com (David Feustel) writes:
- >>The following program compiles and links successfully with the ZTC
- >>-mx option. Running the program crashes the system. The program was
- >>linked and run under Flashtek's x32 dos extender.
-
- >I just compiled this using Zortech and linking with x32v.lib. I
- >compiled it both as a C program and as a C++ program (minor note: i had to
- >include stdlib.h). I sucessfully ran it on my 486 with 8 meg of
- >memory and about 80 meg of free disk space. You are allocating three
- >chunks of 12 Mbytes each.
-
- >I believe your problem is that you compiled the program in small
- >memory model and not X memory model. It will link with x32 and not
- >complain at all. I did that by mistake and indeed running the program
- >halted the system.
-
- I know David uses OS/2 2.0 a lot. I tried running the program under
- OS/2 and first found I had to raise the virtual memory limit on the DPMI
- host. Then I ran out of disk swap space and OS/2 and I had a 'discussion'
- about it. It told me about the swap space problem and suggest I kill
- the process, either I didn't know how (although it appeared to be
- rather obvious) or it couldn't accomplish it. It would run for a second
- or two longer and give me the same message. This happened about 10 times
- and I finally tried a different option -- something about reporting the
- error to the application and continueing. That locked up the machine...
- I had to use the reset button.
-
- As near as I could tell, the program, the compiler, and the DOS extender
- are working correctly. I didn't track down a machine that had enough
- disk space to run the program successfully (virtual memory is required
- for most machines because of the 36 Mbyte memory allocation). If someone
- has tested this further and concluded (or is suspicious) that there is
- a problem with the compiler or extender I will investigate further.
-
- Let me know.
-
- Joe Huffman
- FlashTek, Inc.
- 804 Airport Way Suite D
- Sandpoint, Idaho 83864
- U.S.A.
-
- FAX: 208-263-8772
- Voice: 208-263-7311
- Orders: 800-397-7310
- --
- netcom!proto!joe
- joe@proto.com
-