Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mitel!cunews!ajai From: ajai@sce.carleton.ca (Ajai Sehgal) Newsgroups: comp.os.msdos.programmer Subject: Huge arrays in Turbo C++ Summary: Help!! All my arrays declarations refer to the same addresses! Keywords: turbo c++ Message-ID: Date: 12 Sep 90 14:34:52 GMT Sender: news@ccs.carleton.ca (news) Organization: Carleton University, Ottawa, Canada Lines: 15 OK, so I can't use faralloc() to allocate extended memory. I found a solution to my problem of large arrays....with a MINOR (sarcasm) problem. I declared my arrays as follows: float huge image[1024][1024] float huge psf[1024][1024] The problem is when I write to any location in array image, the same location in psf is written. This symptom is explained by looking at the addresses of the respective arrays, THEY'RE THE SAME!!! ie &image == &psf Why??? Is this a compiler bug or am I doing something wrong? I'm new to object oriented programming. Can anyone help? Thanks in advance. Regards, Ajai.