Radio.MemoryList Returns Empty Collection

  • 1
  • Question
  • Updated 4 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

  • 249 Posts
  • 63 Reply Likes

Posted 4 years ago

  • 1
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 875 Posts
  • 322 Reply Likes
Official Response
Ray,

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.