Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
The latest SmartSDR Software:
SmartSDR v4.2.18 | SmartSDR v4.2.18 Release Notes
SmartSDR v3.10.15 | SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software:
The latest 4O3A Genius Product Software and Firmware
SmartSDR v4.2.18 | SmartSDR v4.2.18 Release Notes
SmartSDR v3.10.15 | SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software:
The latest 4O3A Genius Product Software and Firmware
How to Receive Technical Support::
If you are needing assistance with FlexRadio products, please refer to the product documentation or check the Help Center for known solutions. Need technical support from FlexRadio? It's as simple as creating a HelpDesk ticket.
If you are needing assistance with FlexRadio products, please refer to the product documentation or check the Help Center for known solutions. Need technical support from FlexRadio? It's as simple as creating a HelpDesk ticket.
KeepAlive() change request in the api
rfoust
Member ✭✭
In radio.cs, the KeepAlive() function has an if block to check if:
if (!API.ProgramName.Contains("Maestro"))
Any chance that can be changed to check for the existence of ProgramName to prevent a null reference exception? Something like this:
if ((API.ProgramName != null && API.ProgramName != "") && !API.ProgramName.Contains("Maestro"))
Thanks! 0
Answers
-
I am guessing they do not check for this because you should set this value before calling Init.
Here is what I do for FRStack
API.ProgramName = "FRStack";
API.Init();0 -
Yeah I've modified my code to do that now, just took a sec to figure out why it was blowing up. Either way, not a huge deal.
Now I gotta figure out why keepalive isn't actually keeping it alive. Haven't played with the API in a few years...It has changed quite a bit. :-)0 -
Note that KeepAlive doesn't run in Debug mode. Only in Release.
0 -
Indeed, a ProgramName should be set before calling API.Init. However, it could be checked and something more sensible shown to help the developer figure this out. I've entered issue #5528 to address this. Thanks for the report.0
Leave a Comment
Categories
- All Categories
- 393 Community Topics
- 2.2K New Ideas
- 668 The Flea Market
- 8.5K Software
- 174 SmartSDR+
- 6.5K SmartSDR for Windows
- 191 SmartSDR for Maestro and M models
- 450 SmartSDR for Mac
- 276 SmartSDR for iOS
- 266 SmartSDR CAT
- 215 DAX
- 389 SmartSDR API
- 9.5K Radios and Accessories
- 70 Aurora
- 317 FLEX-8000 Signature Series
- 7.2K FLEX-6000 Signature Series
- 981 Maestro
- 58 FlexControl
- 869 FLEX Series (Legacy) Radios
- 952 Genius Products
- 474 Power Genius XL Amplifier
- 349 Tuner Genius XL
- 129 Antenna Genius
- 311 Shack Infrastructure
- 217 Networking
- 474 Remote Operation (SmartLink)
- 143 Contesting
- 833 Peripherals & Station Integration
- 146 Amateur Radio Interests
- 1.1K Third-Party Software

