[Insight-users] crash with release build - not because of uninitialized variable?
John Drescher
drescherjm at gmail.com
Tue Dec 13 19:04:42 EST 2011
On Tue, Dec 13, 2011 at 6:57 PM, Ryan Guan <ryan.guan at yahoo.com> wrote:
> Hi All,
>
> I attached a simple test code basically reading in an image, and I just
> realized that it will crash at ImageReader->Update() [actually at
> ITKProcessObject::GenerateOutputInformation() ] when I compile at release
> mode but was fine at Debug mode.
> I searched in the mailing list, and (thought) I have ruled out the cause of
> uninitialized variable or destructed smartpointer, so I came up with this
> test code and the problem is still there!
> I would appreciate if anyone can help to find what's the problem? Thanks a
> lot!
>
> IDE: windows7 Visual Studio 2008
> ITK/Application: 3.20.0
>
Did you build ITK to create DLLs. If so and you installed ITK (using
the INSTALL target) that is the problem. I'll explain In Visual Studio
you can not safely mix a debug dll and a release executable or vice
versa.
John
More information about the Insight-users
mailing list