Re: [fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Xiangrong Fang
You are right, the bug is fixed, and another bug in the GetEnumerator are also found and fixed. This is my first time using heaptrc. Thanks a lot. 2013/12/27 Jeppe Græsdal Johansen > Den 27-12-2013 10:16, Xiangrong Fang skrev: > > Hi All, > > I used HeapTrc on my TTreap class: > > https:/

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Sven Barth
Am 27.12.2013 11:22 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: > > Reinier Olislagers wrote: >> >> On 27/12/2013 10:17, Lukasz Sokol wrote: >>> >>> On 26/12/13 12:13, Reinier Olislagers wrote: On 26/12/2013 13:09, Dennis Poon wrote: Search the archives for pro

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Mark Morgan Lloyd
Dennis Poon wrote: For what it's worth, I'm ambivalent. Not because I feel that try stacks couldn't or shouldn't be simplified, but because I feel that whoever overloaded try for two different structures should be shot. I don't know enough about compiler. Could you kindly elaborate on the a

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-27 Thread Florian Klaempfl
Am 26.12.2013 18:03, schrieb Pierre Free Pascal: Sorry, I did not realize that the upload did not complete. The correct size is above 40 MB. I uploaded it again on ftp.freepascal.org $ md5sum fpc-2.6.4rc1.i386-win32.exe 132d4777b5d98cca13418ae0460a0b32 *fpc-2.6.4rc1.i386-win32.exe $ ls -al

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Dennis Poon
For what it's worth, I'm ambivalent. Not because I feel that try stacks couldn't or shouldn't be simplified, but because I feel that whoever overloaded try for two different structures should be shot. I don't know enough about compiler. Could you kindly elaborate on the above please? D

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Jürgen Hestermann
Am 2013-12-27 11:22, schrieb Mark Morgan Lloyd: but because I feel that whoever overloaded try for two different structures should be shot. Yes, that's what I thought too as I discovered this long ago. I think this is yet another cuckoo's egg from Borland/Embacadero...

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-27 Thread Ched
Hello, The win32 seems to work perfectly, at least on all the intensive numerical simulations I done. I haven't found the win32/64 cross-compiler on ftp.freepascal.org ... Thanks for the greaaat piece of software ! Raoul ___ fpc-pascal maillist

Re: [fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Jeppe Græsdal Johansen
Den 27-12-2013 10:16, Xiangrong Fang skrev: Hi All, I used HeapTrc on my TTreap class: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas It reported memory leak in the following procedure: function TTreap.GetEnumerator: TTreap; begin Result := TTreap.Create; //<-- memory

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 27/12/2013 10:17, Lukasz Sokol wrote: On 26/12/13 12:13, Reinier Olislagers wrote: On 26/12/2013 13:09, Dennis Poon wrote: Search the archives for proposals for syntax like this that didn't lead to anything. It did lead exactly to Sven Ah yes, you're right that

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Reinier Olislagers
On 27/12/2013 10:17, Lukasz Sokol wrote: > On 26/12/13 12:13, Reinier Olislagers wrote: >> On 26/12/2013 13:09, Dennis Poon wrote: >> Search the archives for proposals for syntax like this that didn't lead >> to anything. >> >> > It did lead exactly to Sven Ah yes, you're right that *is* progress

[fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Lukasz Sokol
On 26/12/13 12:13, Reinier Olislagers wrote: > On 26/12/2013 13:09, Dennis Poon wrote: >> It seems possible in Java and C# but not in FPC. >> Is there a way to combine them like > > No. > Search the archives for proposals for syntax like this that didn't lead > to anything. > > It did lead exactl

[fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Xiangrong Fang
Hi All, I used HeapTrc on my TTreap class: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas It reported memory leak in the following procedure: function TTreap.GetEnumerator: TTreap; begin Result := TTreap.Create; //<-- memory leak here Result.ProxyFor := Self; ...