Page 1 of 1

Eclipse Finder Crash

Posted: 22.03.2004, 04:34
by Nerull
If you search for an eclipse, and there are no results, if you click 'None', and hit 'Go to time and planet' Celestia crashes.

Heres how i found it:
Eclipse Finder
Saturn - 22 Feb 2003 to 22 Mar 2005
Click None, hit Go to time and planet'...boom, crash.

Ive tested it with other planets as well, same result.

WinXP
Athlon XP 1800+
Geforce FX

Posted: 22.03.2004, 04:45
by Nerull
This is with 1.3.2-pre7

Posted: 24.03.2004, 16:35
by Joe
I would think this is a small bug in the source code file:- eclipsefinder.cpp

Code: Select all

Eclipse::Eclipse(int Y, int M, int D)
{
    date = new astro::Date(Y, M, D);
}

Eclipse::Eclipse(double JD)
{
    date = new astro::Date(JD);
}


The two constructor should initialise data member:-body

like this?

Code: Select all

Eclipse::Eclipse(int Y, int M, int D) : body(NULL)
{
    date = new astro::Date(Y, M, D);
}

Eclipse::Eclipse(double JD) : body(NULL)
{
    date = new astro::Date(JD);
}


It did work on my XP machine

Posted: 24.03.2004, 17:00
by chris
Thanks Joe--that is indeed the fix! I've checked it into CVS.

--Chris