Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-06

fpTimer causes memory leaks

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I just wanted to warn you guys that the fpTimer.pp unit causes memory leaks. It was originally based on my code (which I still have). I first tried with the TFPTimer included in FCL and got memory leaks. I then tried my original version which TFPTimer is based on, and I don't get memory leaks.

I'll investigate the memory leak issue further to try and see where it occurs.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
Hi, I just wanted to warn you guys that the fpTimer.pp unit causes memory leaks. It was originally based on my code (which I still have). I first tried with the TFPTimer included in FCL and got memory leaks. I then tried my original version which TFPTimer is based on, and I don't get memory leaks. I'll investigate the memory leak issue further to try and see where it occurs.

Today on #fpc we were speaking about timers and I refered to the fptimer unit. While I checked in the svn logs for its initial version (was it in fpc 2.2.2 or not), I saw no update. Was there a memory leak in this unit or is this thread a false alarm.

Vincent

Reply by email

Graeme Geldenhuys
to Vincent Snijders
Vincent Snijders wrote
Today on #fpc we were speaking about timers and I refered to the fptimer unit. While I checked in the svn logs for its initial version (was it in fpc 2.2.2 or not),

From my git log history... initial check-in by Michael. ======================
Revision 7765
Thu Jun 21 22:15:08 2007 UTC (2 years, 1 month ago) by michael Original Path: trunk/packages/fcl-base/src/inc/fptimer.pp File size: 6153 byte(s)

* Implemented TFPTimer
=====================

It was merged by Peter into fixes_2_2 in r8457
========================
Author: peter 2007-09-13 15:51:25
Committer: peter 2007-09-13 15:51:25
Merged revisions
7364,7380,7765,7939,7955,8023-8024,8038,8062,8077,8103-8106,8153,8167-8169,8173,8183-8185,8221,8263,8293,8343,8346,8348,8355-8356,8436-8437 via svnmerge from
http://svn.freepascal.org/svn/fpc/trunk
======================

I saw no update. Was there a memory leak in this unit or is this thread a false alarm.

Yes, from my last tests in June there was. I have not looked at it again, though it's still no my (long) todo list.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email