I am evaluating the UPnP API and have written a small console app to test it. I am using the UPnPSmartControlPoint object and have added a device handler to receive acknowlegements from the network devices. My handler subroutine fires as expected for each device it finds but the device is not added to the control points device collection. What am I doing wrong? The following is my code. Thanks for any responses.
Dim cp As New UPnPSmartControlPoint
AddHandler cp.OnAddedDevice, AddressOf doit
Sub doit(ByVal sender As Intel.UPNP.UPnPSmartControlPoint, ByVal device As Intel.UPNP.UPnPDevice)