[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ Question
From: |
Matthew Wollenweber |
Subject: |
C++ Question |
Date: |
Tue, 17 Jun 2003 15:34:13 -0400 (EDT) |
hello,
The following code is segfaulting and I have no idea why. I found the line
that is crashing, and ddd wasn't much help.
I'm coding in C++, RefImage -> Cols is an integer. In the first iteration
it's 32 in the second it's 64. I am SURE and have verified that RefImage
-> Cols is not NULL. Yet the folling code crashes on the second iteration.
Does anyone know why?
RowVector X;
for(int level = levels +1; level >= 1; level --)
{
......
//segfaults on the next line on the 2nd iteration
X = RowVector(RefImage -> Cols, 0);
....
}
---------------------------
Matthew Wollenweber
address@hidden
-------------------------------------------------------------
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
-------------------------------------------------------------
- C++ Question,
Matthew Wollenweber <=