Page 1 of 1

GCP 2.2 Startup Issue

Posted: Wed Nov 21, 2007 9:17 am
by 1691
Hi Justin,

I started a new topic so there was some separation between the different issues. My problem is as soon as I start GCP, I get an error and a dialog box stating:

ERROR IN FORM1_LOAD

ATTEMPTED TO DIVIDE BY ZERO.

And then an OK to select.

After selecting OK, GCP runs, but does not download any airline, A/C type or registration number info, whether automatically like it is supposed to or when forcing it manually. It does however dowload flight info. Also, whether automatically or manually entering destination info, it still will not allow GCP to connect, stating it needs all the info in the desination fields filled out, even when they are. All user data is set up correctly. This issue was as a result of both the 2.2 upgrade and the 2.2 full install.

Posted: Wed Nov 21, 2007 12:03 pm
by Greg Goodavish
I am getting this as well.

Posted: Wed Nov 21, 2007 12:07 pm
by Greg Goodavish
OK, I deleted the GCP.ini file, per instructions in my other post. That took care of this problem as well, and now I can download flights, AC, etc. Try it, you'll like it! :D

Posted: Wed Nov 21, 2007 12:07 pm
by nwadc10
This is an interesting problem considering there's no division taking place in FORM1_LOAD...but that's how programming goes. Because it's not giving you airline and AC Type information the problem must be somewhere in there. As for the registration numbers I suspect they are being downloaded but in order for the dropdown box to be populated with the reg numbers an AC Type must be selected. The AC Type, among other things, is a filter so that only reg numbers of that type will appear in the registration dropdown box.

Go to your GCP folder and make sure airlines.dat and aircrafttypes.dat files are there. If they aren't GCP would normally give you a normal popup box and allow you to continue w/ no problems (other than no airline or aircraft types) so I'm not sure yet why this error is occuring. I added some code to this update I'll release today to help pinpoint the problem area.

Justin

Posted: Wed Nov 21, 2007 12:27 pm
by 1691
Tried delete of gcp.ini and other than having to redo the initial setup again, all I get is the same error. Interestingly, when I try to force the download of flights/aircraft, it says it had an error with the webhost. Other than that, nothing changes. Still no drop down selections for aircraft registration, or airline.

Posted: Wed Nov 21, 2007 1:37 pm
by nwadc10
We got this problem fixed. It was a combination of only 1 flight being in the logbook and the TD rate being 0. To get the average TD rate it had to use the 0 to divide which is why the error was coming up. The code has been adjusted to prevent this error and will be included in the update today.