-- Bernhard Treutwein, IuK, Ref. III A 3 Bernhard.Treutwein(at)verwaltung uni-muenchen de > -----Original Message----- > From: blackbox{([at]})nowhere.xy> Behalf Of Douglas G. Danforth > Sent: Friday, May 11, 2007 12:22 AM > To: BlackBox Mailing List > Subject: [BlackBox] - Memory leak bug report > > > 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-1662448437_-_- Content-type: application/rtf Content-transfer-encoding: base64 Content-Disposition: attachment; filename="rtf-body.rtf" e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEk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cg0KPiBccGFyDQo+IC0tLSBCbGFja0JveFxwYXINCj4gLS0tIHNlbmQgc3Vi amVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaFxwYXINCj4gXHBh cg0KPiBcfX0AEAAA ----boundary-LibPST-iamunique-1662448437_-_---Received on Fri May 11 2007 - 09:33:07 UTC
This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:36 UTC