Dart Home | PowerTCP Winsock for ActiveX | Custom Development | Reply | PowerTCP Winsock for ActiveX Topics | Forums |
Author | Forum: PowerTCP Winsock for ActiveX Topic: Dart Strings limitation |
BrendanM From: Durban, South Africa Posts: 80 Member Since: 07/11/02 |
posted August 18, 2009 3:26 PM ID 2788 refers somewhat. I have a large text file (CRLF as EOL) that I am trying to read into a DartStrings using a DartStream. For a file of size 77MB with about 1.3 million lines it is working fine. But for say a file double that size 154 MB (2.6 million lines), the "DS.Add TS.ReadString" call runs without generating any error but the DartStrings is empty. The delimiter on the DartStrings is a CRLF. Is there an upper limit to the size of a DartStrings? I thought all the fixes that were done on the DartStrings removed upper sizes? Here is my code snippet TS.FileName = TargetFolder & DF_IN.FileName TS.Position = 0 DS.Delimiter = vbCrLf DS.Add TS.ReadString |
BrendanM From: Durban, South Africa Posts: 80 Member Since: 07/11/02 |
posted August 18, 2009 3:48 PM I have a workaround whilst you guys are looking into this. Instead of trying to read the stream with a single ReadString, I rather do it in batches. So I am not sure if the error lies with the DartStrings or DartStreams. There also seems to be some performance penalty with this workaround TS.FileName = TargetFolder & DF_IN.FileName TS.Position = 0 DS.Delimiter = vbCrLf While TS.Position < TS.Size DS.Add (TS.ReadString(10000)) Wend |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted August 19, 2009 12:38 PM Hi, Thanks, the problem has been reproduced and recorded as issue #5117. For updates on the status of the issue, please contact Jamie Powell (support@dart.com). -ken |
Reply | PowerTCP Winsock for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |