- Memory leak bug report

From: Douglas G. Danforth <"Douglas>
Date: Thu, 10 May 2007 15:22:29 -0700

----boundary-LibPST-iamunique-2013544991_-_-
Content-type: text/plain

This happens in BB 1.5 also.
I thought ConnectTo(NIL) first might solve the problem
but it doesn't.

-Doug Danforth

?????? ??????? wrote:
> A memory leak simple example (BlackBox 1.6).
> DevLinker.LinkExe MemoryLeak.exe := Kernel+ Files HostFiles Dialog
> Math Strings Stores TestExe
> MODULE TestExe;
>
> IMPORT Files, Stores, WinApi;
>
> PROCEDURE Do;
> VAR file: Files.File;
> wr: Stores.Writer;
> res: INTEGER;
> BEGIN
> file := Files.dir.New(Files.dir.This(""), FALSE);
> wr.ConnectTo(file);
> wr.WriteString ("Hello World!");
> file.Register("tmp", "txt", FALSE, res)
> END Do;
>
> BEGIN
> LOOP
> Do;
> WinApi.Sleep(50)
> END
> END TestExe.
> Run the MemoryLeak.exe programm and watch to Windows Task Manager
> about 10 - 20 minutes later...

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-2013544991_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFRoaXMgaGFwcGVucyBpbiBCQiAxLjUgYWxzby5c
cGFyDQpJIHRob3VnaHQgQ29ubmVjdFRvK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BhbmQgd2F0Y2ggdG8gV2luZG93cyBUYXNrIE1hbmFnZXIgXHBhcg0KPiBhYm91
dCAxMCAtIDIwIG1pbnV0ZXMgbGF0ZXIuLi5ccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQot
LS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNo
XHBhcg0KXHBhcg0KfQ==


----boundary-LibPST-iamunique-2013544991_-_---
Received on Fri May 11 2007 - 00:22:29 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:36 UTC