On Feb 4, 2012, at 2:38 PM, Michael Diehr wrote:
> [...]
> Timer1.action
> dim s as string = htmlviewer1.EvaluateJavaScript("return
> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';")
>
> The speed of the leak seems proportional to the size of the string returned.
> So my guess is that the string being returned from javascript to RB is not
> being freed ever.
More testing ... these two different javascript commands both leak at the same
speed, so I think perhaps it's the string being passed in to the command that
leaks, not the string being returned:
Timer1.action
static xxx as string // a long string to leak memory faster
if xxx = "" then // initialize first time only
for i as integer = 1 to 1000
xxx = xxx + "0"
next
end if
if Keyboard.AsyncShiftKey then // toggle the shift key at runtime to test
options
cmd = "var x = '" + xxx + "'; return '' ;"
else
cmd = "return '" + xxx + "';"
end if
result = htm.EvaluateJavaScriptMBS(cmd)
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info