tlist Questions
6
Solved
I'm a bit puzzled of what to use for storing objects in a list.
Until now I have used TList and freed each item in a loop. Then I discovered TObjectList that do this automatically from Free. Then I...
Derisive asked 2/5, 2012 at 8:15
8
Solved
I need to store a temporary list of records and was thinking that a TList would be a good way to do this? However I am unsure how to do this with a TList and was wondering if this is the best was a...
2
Solved
Starting with windows xp, the tlist command was replaced by the tasklist command.
The old tlist command had the option \t, which permitted to query parent/child process relationship.
Does a s...
3
Solved
is it possible to make a Delphi TList immutable?
I searched in the delphi doc for a class similar to the unmodifiableList in java, but didn't found anything.
regards!
Borgia asked 27/3, 2014 at 16:8
6
I have this code in Delphi 4. I created 10 objects of type T_Charge (see below), which I added to a TList, named myList. The T_Charge type has references to three objects of type T_Platte (see belo...
1
Solved
After upgrading to XE8 some of our projects start to break data. Looks like a bug in TList realization.
program XE8Bug1;
{$APPTYPE CONSOLE}
uses
System.SysUtils, Generics.Collections;
type
TRe...
Jarvis asked 27/4, 2015 at 21:58
0
I need to serialize this json sting to an Delphi class.
{
"Master":{
"version":"1.0"
},
"Details":[
{
"idColisEntreeDetail":0,
"codeBarre":"123456789"
},
{
"idColisEntreeDetail":0,
"co...
Apothegm asked 26/3, 2015 at 10:35
1
Solved
Can someone explain to me if this is possible, or I'm completely missunderstanding this Delphi feature.
Let's say I have a class, I create a few of them, and then add them to an ObjectList. Normal...
1
Solved
I want to use a generic TList of records with a sub list in Delphi XE5:
type
TMyRecord=record
Value1: Real;
SubList: TList<Integer>;
end;
TMyListOfRecords=TList<TMyRecord>;
var
...
2
Solved
I've built a simple logging class and want to confirm that it is thread safe. Basically the Log, RegisterLogger and UnRegisterLogger will be called from different threads. Log will be called alot (...
Torpedoman asked 23/2, 2014 at 20:39
2
Solved
Is it safe to use TList in a multithreaded application which is accessed by all the other threads but only one thread writes to it. the scenario is
A unique TList to each thread which only that th...
Revengeful asked 20/1, 2013 at 15:8
6
Solved
Delete (0) from a TList is expensive because all the subsequent items need to be moved down. If I need to delete a large number of items from the start of an even larger list what's the fastest way...
Strawn asked 1/12, 2011 at 22:12
1
Solved
I'm looking for a way to (automatically) open NERDTree and Tlist on the left side directly above each other, so that each plugin takes up half of the screen height. I already found this question, i...
3
Solved
Possible Duplicate:
How can I search a generic TList for a record with a certain field value?
I have a collection of
TList<TActivityCategory>
TActivityCategory has a Name pr...
1
Solved
I see people declaring their TLists like
MyList : TList<PSomeType>;
Whereafter when they create it, they do
MyList := TList<PSomeType>.Create;
So I asume that by doing that, they ...
8
Solved
*Summarization:
Please check the knowledgeable comments from the Delphi experts. Specifically for me, I would try to use old TList/TObjectList as David suggested, and use hard-cast and TObjectList...
Nectarine asked 18/3, 2011 at 12:32
4
Why EAccessViolation is raised when executing the code below?
uses
Generics.Collections;
...
var
list: TList<TNotifyEvent>;
...
begin
list := TList<TNotifyEvent>.Create();
try...
Eatton asked 14/11, 2008 at 11:22
1
© 2022 - 2024 — McMap. All rights reserved.