From: Macarthur Drake <drake@bme.ri.ccf.org>
Cc: drake@bme.ri.ccf.org
Subject: Help you C++ Debuggers!
Date: 1997/01/16
Date: 1997-01-16T00:00:00+00:00 [thread overview]
Message-ID: <32DEF075.41C6@bme.ri.ccf.org> (raw)
I am in the mist of completing a major piece of code in C++. However I
keep comming across a particularly difficult bug. Can you help?
I am simply trying to declare a three D array:
float objects[9000][10][10];
However, sometimes while compiling I get a strange compilation error
like one of the following:
1. segmentation violation
2.
ld:
Can't have archive/object only 0 bytes long: displayer3.o
3.
ld:
Fatal error in writing to final object file (<\x1c)
Fatal error in writing to final object file (<\x1c)
16.983u 5.929s 1:09.16 33.1% 0+0k 1736+538io 270pf+0w
now I am convinced that my error is related to this array in some way
because if I change the size of the array to say 900 by 10 by 10 then I
don't have any problems. Am I declaring this array properly? I have
plenty of RAM and i don't think that a 900K element array of floats is
too big. Can I dynamically allocate this array somehow?
What is really strange is that sometimes the code compiles and runs
with no problem....and then I turn around and compile it with no changes
and I get an compilation error. Furthermore my problem is not that I am
trying to write to an element that does not exist (like if i were trying
to write to element objects[9001][10][10]) because an error like that
would be a run time error not an compilation error.....any help it truly
appreciated.........thanks alot,
--
Macarthur Drake jr.
Biomedical Engineering
The Cleveland Clinic Foundation
Phone (216) 445 3411, Fax (216) 444 9198
drake.79@postbox.acs.ohio-state.edu, drake@bme.ri.ccf.org
next reply other threads:[~1997-01-16 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-16 0:00 Macarthur Drake [this message]
1997-01-19 0:00 ` Help you C++ Debuggers! Tore Lund
[not found] ` <32E4EC1B.748E@acm.org>
1997-01-23 0:00 ` Tansel Ersavas
1997-01-23 0:00 ` Danette & Murray Root
1997-01-23 0:00 ` Tansel Ersavas
[not found] ` <01bc093e$9992fa60$966d6f9e@Defualt.DVRD.CDC.GOV>
1997-01-24 0:00 ` Tore Lund
1997-01-25 0:00 ` Lawrence Kirby
1997-01-20 0:00 ` Gautier
1997-01-20 0:00 ` Tanmoy Bhattacharya
1997-01-21 0:00 ` Chris Engebretson
1997-01-21 0:00 ` Chris Engebretson
1997-01-21 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-01-21 0:00 ` Bradley A. Burns
1997-01-21 0:00 ` David Emery
1997-01-22 0:00 ` David Emery
1997-01-22 0:00 ` Michael Chapman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox