yes I set the instantiated object = null and I called close on object. Problem is the _free event never occurredBruceSteers wrote: ↑Tuesday 18th April 2023 2:48pmthe attached project contains no source code.axisdj wrote: ↑Tuesday 18th April 2023 2:12pmwhen I set the instance of the class = nothing it did not destroy instance, and the _free event did not occur
so it was continuing to attempt to send udp packets
I worked around it ...
Please see the project attached and let me know if I am using UDPsocket correctly for broadcasting
How did you pack it?
It's best to make an archive using the IDE , select "Project/Make source archive" this will include what is needed and omit what's not needed.
and you should not set "class" = nothing you should set "object" = nothing.
Do you understand the difference? you create an object from the class like this..
Dim hObject = New UDPSocket
then you must do
hObject = Null
not UDPSocket = Null
I just noticed that option late yesterday.. here it is attached