Page 1 of 1

Program crashes when scan list index is out of range

Posted: Sun Oct 30, 2022 5:04 pm
by w8ptm
I am using this software for the first time, so had to read from the radio to create an initial codeplug. After reading from the radio, clicking on a particular zone causes the program to crash with a message:

"Unhandled exception has occurred ... If you click Quit, the application will close immediately"
"Index was outside of the bounds of the array"

After examining the json file, I found that one of my entries had a "Scan List ID": 1, whereas I have no scan list setup. So this index of "1" causes that crash. It's not a big deal for me since I can just edit the json file and change that value to 0. Just to let you know so you can handle invalid indices to allow the app to continue (with a warning of some sort)

Great software. Hope to see you implement contacts and channels copy/paste/delete.

Thanks,
W8PTM

Re: Program crashes when scan list index is out of range

Posted: Sun Oct 30, 2022 5:36 pm
by MM7DBT
Version 0.2.1030.2:
Should fix that issue, it will default to "Off" if the Scan List is not found.

Re: Program crashes when scan list index is out of range

Posted: Mon Oct 31, 2022 2:05 am
by w8ptm
Thank you. Verified working in v0.2.1030.2. That was quick.

Re: Program crashes when scan list index is out of range

Posted: Mon Oct 31, 2022 5:41 am
by MM7DBT
I just happened to have the source code open when I read this so it was an easy fix and push out the update :D