Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR or 4O3A Genius Product Software?
SmartSDR v3.9.19 and the SmartSDR v3.9.19 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
The latest 4O3A Genius Product Software and Firmware
SmartSDR v3.9.19 and the SmartSDR v3.9.19 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
The latest 4O3A Genius Product Software and Firmware
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
- 349 Community Topics
- 2.1K New Ideas
- 615 The Flea Market
- 8K Software
- 2 SmartSDR+
- 6.3K SmartSDR for Windows
- 173 SmartSDR for Maestro and M models
- 412 SmartSDR for Mac
- 267 SmartSDR for iOS
- 249 SmartSDR CAT
- 186 DAX
- 375 SmartSDR API
- 9.2K Radios and Accessories
- 22 Aurora
- 207 FLEX-8000 Signature Series
- 7.1K FLEX-6000 Signature Series
- 921 Maestro
- 53 FlexControl
- 860 FLEX Series (Legacy) Radios
- 893 Genius Products
- 455 Power Genius XL Amplifier
- 322 Tuner Genius XL
- 116 Antenna Genius
- 283 Shack Infrastructure
- 199 Networking
- 444 Remote Operation (SmartLink)
- 138 Contesting
- 754 Peripherals & Station Integration
- 139 Amateur Radio Interests
- 973 Third-Party Software