Re: [fpc-pascal] Again heaptrc dump interpretation

2017-12-10 Thread wkitty42
On 12/10/2017 03:45 PM, denisgolovan wrote: True heap size : 7276691456 Should be : 7276691456 IIUC, if these two do not match, you might have a memory leak... keep up also with your memory blocks allocated and freed... -- NOTE: No off-list assistance is given without prior approval.

[fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread AlexeyT
Hello I have 1M lines file. CudaText (Lazarus app) cannot delete lines fast [selected 800K lines]. Reason: TFPSList has only Delete for one item. Need DeleteRange for many items. -- Regards, Alexey ___ fpc-pascal maillist -

Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread Michael Van Canneyt
On Sun, 10 Dec 2017, AlexeyT wrote: Hello I have 1M lines file. CudaText (Lazarus app) cannot delete lines fast [selected 800K lines]. Reason: TFPSList has only Delete for one item. Need DeleteRange for many items. I'm not sure that it will help you: for many cases the list will need

Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread AlexeyT
Pls, call Deref for all items (1 by 1), by REALLOC all items [e.g. 800K] as block. Today I call Delete 800K times and do realloc 800K times :( -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread Benito van der Zander
Hi Michael Van, delete the elements one by one anyway, for instance for interfaces. that can still be speed up by range deletion.  First call _Release on them all, then remove them with move/fillchar. Bye, Benito ___ fpc-pascal maillist -

[fpc-pascal] Again heaptrc dump interpretation

2017-12-10 Thread denisgolovan
Hi all I am getting following dump after my application exits. Heap dump by heaptrc unit 342662 memory blocks allocated : 7318105636/7319146560 342662 memory blocks freed : 7318105636/7319146560 0 unfreed memory blocks : 0 True heap size : 7276691456 True free heap : 1773152 Should be :

[fpc-pascal] fcl-web (WebLaz) - Duplicate Module Error

2017-12-10 Thread African Wild Dog
Hello, Please confirm if this is a bug: I have created a HTTP Server Application project and added a module called "test_module" with an action "test_action". When i run my application, when i access "http://localhost:8080/test_ module/test_action" for the first time it works, but in the