Re: Files & Garbage Collector

From: [at]} <Gérard>
Date: Wed, 20 Oct 2004 14:23:48 +0200

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

> another hmm, since I would have expected that
> executing it with a "commander" should cause
> a garbage collector run. But I tried it also
> with garbage collection in between:
>
> The numbers given are also not in accordance
> with the numbers given in the "Double status bar"
> (see Edit->Preferences).
>
> You are correct (I forgot about that), Module Out
> causes memory leak, I told that OMS about 5 years ago
> and I had hoped that the current release has corrected
> it, but apparently not.


Sorry Bernhard, but I can't agree.

Add "StdLog.Clear" before Services.Collect and you'll get no more problems.
There is no memory leak in Module Out. But you can't recover memory as long
as you don't clear the Log, since each written character occupies a small
amount of memory. It's also why the "double status bar" gives a slightly
different result: it gives the amount of used memory at the end of the
procedure call, and you write some characters between calling
Kernel.Allocated and the end of your procedure (more precisely, you write
the amount of allocated memory). This writing consumes memory.

About my own remark concerning the memory leak of files procedures, I've
received an answer from OuS, that tells me they will try to correct the
problem "as soon as possible". It's very good news.

Cheers.

Grard

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJ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G92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29t
ZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3Ug
YXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBz
cGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBz
b21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19AIwwAAAA
PA=


----boundary-LibPST-iamunique-2076320106_-_---
Received on Wed Oct 20 2004 - 14:23:48 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:33 UTC