[Insight-users] Cannot debug projects of ITKApplication.

jimmy jimmy_lab at 163.com
Mon Jul 23 07:53:54 EDT 2007


Thank you for your reply.

The error occured at  ITKCommon.dll!itk::ProcessObject::Update()  Lin 617:   
( whatever object I used, the error always occured at Update() in debug mode )

void 
ProcessObject
::Update()
{
  if (this->GetOutput(0))
    {
    this->GetOutput(0)->Update();
    }
}

And then the error is 
"
 Debug Assertion Failed!
 Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
"

Can you tell me why? 

Thank you very much.

------------------				 
jimmy
2007-07-23

-------------------------------------------------------------
发件人:Luis Ibanez
发送日期:2007-07-22 22:57:00
收件人:jimmy
抄送:insight-users
主题:Re: [Insight-users] Cannot debug projects of ITKApplication.

Hi Jimmy,

Can you look at the call stack in the debugger ?

Could you trace what is the ITK file, and line
that is triggering the error ?

Please let us know,


  Thanks


    Luis


----------------
jimmy wrote:
> Hi, everyone.
> 
> I have met a very strange problem when using ITKApplication:
> I cannot debug or run Applications (e.g. ImageRegistration2D ,IntensityBased2D3DRegistration ) under the DEBUG mode in VS 2003. 
> Here is the Error message:
> "
> Debug Assertion Failed!
> Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
> "
> at [m_FixedImageReader or other object]->Update();
> 
> On the contrary, the project can be run very smoothly under RELEASE mode.
> 
> Can anyone help me?  Thanks in advance.
>  				
> --------------
> jimmy
> 2007-07-21
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 



More information about the Insight-users mailing list