quote:
Originally posted by CookieRevised
var Buffer = Interop.Allocate((length + 1) * 2);
should be
var Buffer = Interop.Allocate(length * 2);
since you already increased length by one (to accomodate the null character).
Fair enough, I'll sort that.
quote:
Originally posted by CookieRevised
As for the garbage collection, that is a very good practice indeed, but it isn't needed for scripting as Plus! already does the garbage collection for you.
Aka, code will run 'faster' if Plus! does it internally, compared to the need to parse, execute and handle yet another script line.
Yep, I'll take that out.
quote:
Originally posted by CookieRevised
* CookieRevised slaps whiz around for swapping WM_GETTEXTLENGTH and WM_GETTEXT
... frustrating stuff I can imagine
Yes, it happens.