Login  
Search All Forums
Dart Home | PowerTCP Winsock for ActiveX | Custom Development Reply | PowerTCP Winsock for ActiveX Topics | Forums   
AuthorForum: PowerTCP Winsock for ActiveX
Topic: DartStrings bug in Find method
BrendanM

From: Durban, South Africa
Posts: 80
Member Since: 07/11/02
posted April 9, 2008 3:07 PM

Back in January 2007 I reported a bug that was fixed with DartString indexes > 65535. Now I have found the same type of problem on the Find method when one tries to specify to only start searching after a StartAfter index > 65535. It always returns an empty string if the StartAfter index is > 65535. See the VB6 code snippet below

Dim Stream As New DartStream
Dim Strings As New DartStrings

Stream.FileName = App.Path & "\Test.ini"
Strings.Delimiter = vbCrLf
Strings.Add Stream.ReadString
Stream.FileName = ""

' this one works fine
MsgBox "Search from Line 65535 : " & Strings.Find("[PortPostmanFilter", 65535)

' this my error - it cannot find any string after index 65535, and just returns ""
MsgBox "Search from Line 65536 : " & Strings.Find("[PortPostmanFilter", 65536)
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted April 9, 2008 5:29 PM

I have successfully reproduced the problem, and reported it to development as issue 4707. For updates on the status of this issue, please contact Jamie Powell (jamie.powell@dart.com).

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