Sign in Join

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

Mailing lists / lazarus / 2012-12

Traverse a TFPDataHashTable

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Sven Barth
to xrfang
xrfang wrote 7 lines
Hi, How can I traverse a TFPDataHashTable? The ForEachCall method is protected. Do I have to write a sub-class to expose this method? The requirement is that I use it to organize a bunch of objects, and need to free the memory of these objects.

Around two weeks ago a public call "Iterate" was added to "TFPDataHashTable" in trunk. If you use 2.6.0 or the to-be-released 2.6.2 you'll need to either sub-class the type or use a class helper...

Regards,
Sven

Reply by email

xrfang
to Sven Barth

Cool, ?btw, what is the release plan for 2.6.2 and 2.6.4 ?

? ?, 12? 28, 2012 at 7:36 ???Sven Barth ???

xrfang wrote 7 lines
Hi, How can I traverse a TFPDataHashTable? The ForEachCall method is protected. Do I have to write a sub-class to expose this method? The requirement is that I use it to organize a bunch of objects, and need to free the memory of these objects.

Around two weeks ago a public call "Iterate" was added to "TFPDataHashTable" in trunk. If you use 2.6.0 or the to-be-released 2.6.2 you'll need to either sub-class the type or use a class helper...

Regards,
Sven

Reply by email

Sven Barth
to xrfang
xrfang wrote
Cool, btw, what is the release plan for 2.6.2 and 2.6.4 ?

2.6.2 is planned for the beginning of 2013, 2.6.4 is not yet planned as 2.6.2 must be out before 2.6.4 can be planned at all :)

Regards,
Sven

Show quoted text 34 lines
? ?, 12? 28, 2012 at 7:36 ???Sven Barth ??? > On 28.12.2012 12:22, xrfang wrote: > > Hi, > > > > How can I traverse a TFPDataHashTable? The ForEachCall method is > > protected. Do I have to write a sub-class to expose this method? > > > > The requirement is that I use it to organize a bunch of objects, and > > need to free the memory of these objects. > > Around two weeks ago a public call "Iterate" was added to > "TFPDataHashTable" in trunk. If you use 2.6.0 or the to-be-released > 2.6.2 you'll need to either sub-class the type or use a class helper... > > Regards, > Sven > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email