Program crashes when scan list index is out of range

Report any bugs or errors you find here.
Post Reply
w8ptm
Posts: 5
Joined: Sun Oct 30, 2022 4:53 pm

Program crashes when scan list index is out of range

Post 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
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

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

Post by MM7DBT »

Version 0.2.1030.2:
Should fix that issue, it will default to "Off" if the Scan List is not found.
-73 de MM7DBT
w8ptm
Posts: 5
Joined: Sun Oct 30, 2022 4:53 pm

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

Post by w8ptm »

Thank you. Verified working in v0.2.1030.2. That was quick.
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

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

Post 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
-73 de MM7DBT
Post Reply