[Top][All Lists]

[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)


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       

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]