[Gambas-user] Memory leak 2

Wolfgang dl7nb at ...17...
Mon Jan 13 09:06:10 CET 2014


Hello Benoît,

I found another strange behaviour:

==== snip
Dim i As Long
Dim s As String

s = 
"1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghi"
' s has 99 Bytes plus the "\n", so we have 100Bytes for each line

   For i = 1 To 1000
     TextArea1.Text &= s & "\n"
   Next
==== snip

This builts a TextArea1.Text that has a length of 100kB.
In my RAM it allocates app. 130MB!

My fault or did I find a bug?

ExampleProject and sysinfo in the attachment!

Greetings from Bavaria

Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-gzip
Size: 6239 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140113/b4929a22/attachment.bin>


More information about the User mailing list