From bug-request at octave dot org Wed Apr 5 10:12:44 2006 Subject: AW: system() fails in high memory situation From: "Jurzitza, Dieter" To: Date: Wed, 5 Apr 2006 17:10:59 +0200 Hi folks, I am not the great C-programmer. But what Tom does here is generating tons of unassigned memory blocks. Your loop changes the address p points to in every run. No chance to get the data back at the end of the run. I do not know whether this is the right way to check things. At least I would have expected an array of pointers like int *p[500] you assign ram to in the loop. And, it is clear that I do not know whether it would make a difference at all. But it is hard to tell what a compiler is going to do with such a mess. I am very sure that octave does not work this way - because it would eat up all available ram after a while without any chance to get it back afterwards. However, given you use an array of pointers and things remain messy you're right. Unfortunately I cannot test here. Take care Dieter Jurzitza ******* > -----Ursprüngliche Nachricht----- > Von: Tom Holroyd (NIH/NIMH) [E] [mailto:tomh at kurage dot nimh dot nih dot gov] > You're right, of course. Here is such a program. ******* ******************************************* Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden. ******************************************* ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------