[Insight-users] Question about InterlockedIncrement
Luis Ibanez
luis.ibanez at kitware.com
Sun Feb 28 15:57:12 EST 2010
Hi Erkang,
1) When you say that you "installed", do you mean that
you built ITK, VTK and MITK from source code ?
2) When you build MITK, did you pointed to the ITK that
you built ? (or is MITK using a separate ITK build ?).
3) Please note that you must build the three libraries
(ITK, VTK, MITK) with the same compilation options.
Particularly, (Release vs Debug) and (64bits vs 32bits).
Regards,
Luis
------------------------------------------------------------------------
On Fri, Feb 26, 2010 at 6:21 PM, Erkang Cheng <ekyaya at gmail.com> wrote:
> Hi:
>
> I install the ITK and also the MITK which use ITK and VTK.
>
> I test the very simple example. But there is error like this :Unhandled
> exception at 0x7582b727 in test1.exe: Microsoft C++ exception:
> itk::ExceptionObject at memory location 0x002bfc18..
>
> And the error link to itkLightObject.cxx :
>
> InterlockedIncrement
>
> (&m_ReferenceCount);
>
> which is in :
>
> void
>
>
>
> LightObject
>
> ::
>
> Register() const
>
> {
>
> // Windows optimization
>
> #if
>
> (defined(WIN32) || defined(_WIN32))
>
> InterlockedIncrement(&m_ReferenceCount);
>
> ....
>
> }
>
>
>
> Could anyone help me figure out the problem?
>
> My computer is 64-bit, but I install ITK and VTK with 32-bit in CMake. Is
> this the problem?
>
> Thanks
>
> Erkang Cheng
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list