Search All Forums
Dart Home | PowerTCP Winsock for ActiveX | Custom Development Reply | PowerTCP Winsock for ActiveX Topics | Forums   
AuthorForum: PowerTCP Winsock for ActiveX
Topic: UDP Receive non blocking memory leak

From: Durban, South Africa
Posts: 80
Member Since: 07/11/02
posted October 13, 2011 11:20 AM

We have a problem with a memory leak with the UDP control when it is used in a non blocking receive call. Take this code snippet and paste it into a new VB6 project with a command button on the form. Compile the project, run it and then hit the command button several times. In Windows Task Manager you will see the memory creeps up every time the call is made. It may be small but we have over a hundred UDP ports open and over a space of a few months our application consumes several hundred MB of RAM. And the eeventually falls over.

Make sure there is NO data coming in on that UDP port.

Private Datastream As New DartStream
Private UDP As New UDP

Private Sub Command1_Click()
Dim i As Long
For i = 1 To 1000
Call UDP.Receive(Datastream)
Next i
End Sub

Private Sub Form_Load()
UDP.Timeout = 0
UDP.Open 10000
End Sub
Nick B (Admin)

From: Utica, NY USA
Posts: 614
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted October 13, 2011 2:38 PM


Thank you for your report, it has been entered as TTWeb Issue #5536. For information and updates on its status, please contact jamie.powell@dart.com

-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.

Reply | PowerTCP Winsock for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX