[Insight-users] Visual 6.0 problems

Lydia Ng lng@insightful.com
Thu, 4 Apr 2002 11:29:26 -0800


My VC++ sometimes crashes too on loading=20
when I use the old testing scheme (in the beta).
I found that I only got the crash if I "double-clicked" on ITK.dsw.
If I did an open workspace from inside VC++, things behave better.

BTW have you install a service pack? I think SP6 is the recommended.
Someone please correct me if I'm wrong!

- Lydia

> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
> Sent: Thursday, April 04, 2002 10:39 AM
> To: Erickson, Bradley J., M.D.; insight-users@public.kitware.com
> Subject: Re: [Insight-users] Visual 6.0 problems
>=20
>=20
> Hi Bradley,
>=20
> You are doing the right thing,
> ITK.dsw is the workspace file to load.
>=20
>   VC++ is in fact NOT crashing !
>=20
> What happens is that ITK has a large set of test programs
> which are used for quality assurance.  We have about 250
> test files that exercise the functionality of most of the classes.
> That allows to rapidly detect bugs introduced in the code
> when  new functionalities are added.
>=20
> This is what you can see every day in ITK dashboard:
>=20
> http://www.itk.org/Testing/Dashboard/MostRecentResults-Nightly
> /Dashboard.html
>=20
> All these test are recompiled several times a day in about
> ten different platforms.
>=20
> There is a .dsp file for each one of these test, so what you
> perceive as crashing (I assume that you refer to the fact
> that VC++ freezes for a while) it is just the time that VC++
> requires for loading all these tests.
>=20
> Well, that's for the bad news...
>=20
>=20
> Now, for the good news:  there are two ways in which
> you can  avoid this long time for loading:
>=20
> Option One:
> In principle you don't need the testing. It is nice to have
> because it allows you to make sure that the toolkit was
> correctly built in your system.... but you can just build the
> library.  In that case you can simply disable "BUILD_TESTING"
> when you run CMake. That will prevent CMake from
> creating all the .dsp files corresponding to tests.
> You will still get the .dsp project files for the libraries and for
> the examples.
>=20
> Option Two:
> This testing mechanisms has been replaced by the very
> reason you are now concerned about:  The long time for
> loading the ITK.dsw workspace. =20
> Right now all the tests are factorized in about six or seven
> big test projects so the load time is much, much better. =20
> These changes was not done in the Beta release but in the
> current version of the library. If you update your ITK code
> by downloading the library using CVS, you will get these
> new testing structure that loads nicely into VC++.
>=20
>=20
> Option One is maybe the quick way of getting around
> this problem while Option Two is probably your best bet
> for the long term.
>=20
>=20
> Hope that helps,
>=20
>=20
> Luis
>=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
> Erickson, Bradley J., M.D. wrote:
>=20
> >ITK.dsw is what I load. WHen I do so, VC loads projects for perhaps a
> >minute. But sometimes the compiler crashes in the middle of=20
> this. If it
> >doesn't, and I do a 'build', it dies in various modules, but=20
> always with the
> >same error: referenced memory that could not be "written".=20
> That seems like a
> >bug in the compiler... I have a fairly powerful system, so=20
> shouldn't be
> >resource limitations...
> >
> >By the way, thanks for the quick response!
> >Brad
> >
> >-----Original Message-----
> >From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
> >Sent: Thursday, April 04, 2002 12:14 PM
> >To: Erickson, Bradley J., M.D.
> >Cc: 'insight-users@public.kitware.com'
> >Subject: Re: [Insight-users] Visual 6.0 problems
> >
> >
> >Hi Bradley,
> >
> >Once you run CMake You should find a ITK.dsw
> >file in the binary directory that you indicated
> >during the configuration.
> >
> >This is the workspace that you should open,
> >not any of the .dsp files.
> >
> >Please let us know if you find any problems
> >loading this ITK.dsw file. In principle that
> >should be very straightforward.
> >
> >
> >Luis
> >
> >
> >---------------------------------------------
> >
> >Erickson, Bradley J., M.D. wrote:
> >
> >>I just downloaded the beta pack. It compiled fine under=20
> LINUX, but the
> >>visual C compiler crashes either while loading the ITK=20
> workspace, or while
> >>compiling it. I realize the instructions say to load the ALL_BUILD
> >>workspace, but what I have has nothing in it. What did I do=20
> wrong, and how
> >>do I correct it?
> >>THanks
> >>Brad
> >>_______________________________________________
> >>Insight-users mailing list
> >>Insight-users@public.kitware.com
> >>http://public.kitware.com/mailman/listinfo/insight-users
> >>
> >>
> >
> >
> >
> >
>=20
>=20
>=20
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>=20