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.20 and the SmartSDR v3.8.20 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.20 and the SmartSDR v3.8.20 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.
VS Examples
Mark Erbaugh
Member ✭✭
1
Answers
-
1
-
Pete,
Thanks for the reply. I found some stuff on MS' website that used a delegate. Is that different from the Action you used? Does the Action have to be allocated each time, or could you allocate it once and re-use it?
0 -
0
-
I'm not sure you need to remove the property change handler. C# does a pretty good job of cleaning up after itself. Probably the property changed after the handler was removed. You may need to disconnect or dispose of the radio object or whatever is changing the property. If I have time I'll look at the code Flex provided.0
-
I just posted in another thread about this. It depends completely on your use. If the event handler remains alive during the entire life of your app then not removing it is fine.
But if you open a window, then close it and the open sets an event handler but does not remove it. I have seen some VERY STRANGE behavior with this scenario.1 -
0
-
Yes, I should have given a more comprehensive explanation.0
-
What's the difference between Action and delegate. If you do a Peek definition on Action, it displays code from System.Core that just says public delegate void Action()
Secondly, your code calls new every time you call this.BeginInvoke. Would it be more resource efficient to create a variable of type Action<string,string,bool> and do the new once in the object's constructor and then just reference that object?
0 -
You know, I’ve been using that code for so long I have never thought much about it. That would be a good question to post on stackoverflow. As far as efficiency, if it’s not in a loop it really doesn’t matter much.0
Leave a Comment
Categories
- All Categories
- 260 Community Topics
- 2.1K New Ideas
- 538 The Flea Market
- 7.6K Software
- 6K SmartSDR for Windows
- 139 SmartSDR for Maestro and M models
- 368 SmartSDR for Mac
- 242 SmartSDR for iOS
- 226 SmartSDR CAT
- 175 DAX
- 345 SmartSDR API
- 8.8K Radios and Accessories
- 6.9K FLEX-6000 Signature Series
- 44 FLEX-8000 Signature Series
- 859 Maestro
- 45 FlexControl
- 849 FLEX Series (Legacy) Radios
- 807 Genius Products
- 424 Power Genius XL Amplifier
- 280 Tuner Genius XL
- 87 Antenna Genius
- 227 Shack Infrastructure
- 153 Networking
- 409 Remote Operation (SmartLink)
- 130 Contesting
- 640 Peripherals & Station Integration
- 116 Amateur Radio Interests
- 878 Third-Party Software