Radio.MemoryList Returns Empty Collection

  • 1
  • Question
  • Updated 5 years ago
  • Answered

I have several memories set up in SmartSDR v1.4.0.  However, reading the Radio.MemoryList property returns an empty collection.

In my code, SSDR is a class that wraps FlexLib & SSDR.CurrentRadio is set to the currently connected radio.

After executing the statement:

Dim NrMem As Integer = SSDR.CurrentRadio.MemoryList.Count

The value of NrMem is "0" & SSDR.CurrentRadio.MemoryList is an empty collection.

What am I missing?

73, Ray, K9DUR

Photo of Ray Andrews, K9DUR

Ray Andrews, K9DUR, Elmer

  • 257 Posts
  • 65 Reply Likes

Posted 5 years ago

  • 1
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 951 Posts
  • 359 Reply Likes
Official Response

It sounds like you may be checking the MemoryList immediately after connecting to the radio. It takes some time after connecting to fill out the all of the structures with the data sent from the radio. You might try a delay after connecting or subscribe to he MemoryAdded event.