Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR, Power Genius, Tuner Genius and Antenna Genius Software?
SmartSDR v3.8.21 and the SmartSDR v3.8.21 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
SmartSDR v3.8.21 and the SmartSDR v3.8.21 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
If you are having a problem, 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.
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
- 300 Community Topics
- 2.1K New Ideas
- 550 The Flea Market
- 7.6K Software
- 6.1K SmartSDR for Windows
- 149 SmartSDR for Maestro and M models
- 378 SmartSDR for Mac
- 253 SmartSDR for iOS
- 239 SmartSDR CAT
- 176 DAX
- 361 SmartSDR API
- 8.9K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 68 FLEX-8000 Signature Series
- 871 Maestro
- 45 FlexControl
- 849 FLEX Series (Legacy) Radios
- 819 Genius Products
- 427 Power Genius XL Amplifier
- 286 Tuner Genius XL
- 106 Antenna Genius
- 253 Shack Infrastructure
- 174 Networking
- 411 Remote Operation (SmartLink)
- 130 Contesting
- 665 Peripherals & Station Integration
- 128 Amateur Radio Interests
- 895 Third-Party Software