Out of String Space in Visual Basic 6

后端 未结 6 1543
误落风尘
误落风尘 2020-12-16 18:03

We are getting an error in a VB6 application that sends data back and forth over TCP sockets. We get a runtime error \"out of string space\". Has anyone seen this or have

6条回答
  •  情话喂你
    2020-12-16 18:20

    It sounds like you are appending a string often. You could try using a StringBuilder class

    Also, it could be you have some stale objects that contain strings hanging around that aren't being used and should be freed. Check for circular references perhaps by logging object allocation/frees in Class_Initialize/Class_Finalize

提交回复
热议问题