<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=big5>
<STYLE></STYLE>
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 10pt; COLOR: #000000; PADDING-TOP: 15px; FONT-FAMILY: Arial"
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true" acc_role="text"
name="Compose message area">
<DIV>Dear experts</DIV>
<DIV> </DIV>
<DIV>I am trying to use itkArray (ITK 3.0.1) inside a class member function
as below:</DIV>
<DIV> unsigned int ParametersDimension = 100;</DIV>
<DIV> typedef Array<unsigned int>
CountType;<BR> CountType derivative_count = CountType(
ParametersDimension );<BR> derivative_count.Fill(
NumericTraits<ITK_TYPENAME CountType::ValueType>::Zero );<BR></DIV>
<DIV>However the program crash with the following error at the end of the
function at runtime in Visual C++ 2003 Debug mode:</DIV>
<DIV> watershed.exe!vnl_c_vector<unsigned
int>::deallocate(unsigned int * p=0x019cc998, int n=360) Line 468 +
0xf C++<BR> watershed.exe!vnl_vector<unsigned
int>::destroy() Line 282 +
0x12 C++<BR> watershed.exe!vnl_vector<unsigned
int>::~vnl_vector<unsigned int>() Line
275 C++<BR> watershed.exe!itk::Array<unsigned
int>::~Array<unsigned int>() Line 73 + 0x8 C++<BR></DIV>
<DIV>I am wondering if I am missing something obvious or if something is out of
whack here.</DIV>
<DIV> </DIV>
<DIV>Thanks =)</DIV>
<DIV>Albert</DIV></BODY></HTML>