Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TApplication main thread and TThread



Permlink Replies: 6 - Last Post: Dec 4, 2014 8:44 PM Last Post By: Remy Lebeau (Te...
Dan Ambrose

Posts: 87
Registered: 12/11/03
TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 24, 2014 8:53 AM
Im using C++ Builder XE5.
Does TApplication have (or any descendant of) a TThread object ?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 24, 2014 12:05 PM   in response to: Dan Ambrose in response to: Dan Ambrose
Dan wrote:

Im using C++ Builder XE5. Does TApplication have (or any descendant
of) a TThread object ?

TApplication itself does not use TThread for anything.

--
Remy Lebeau (TeamB)
Dan Ambrose

Posts: 87
Registered: 12/11/03
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 3, 2014 6:13 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Dan wrote:

Im using C++ Builder XE5. Does TApplication have (or any descendant
of) a TThread object ?

TApplication itself does not use TThread for anything.

--
Remy Lebeau (TeamB)

I'm using / learning C++ Builder XE5. I have a documentation question. I'm trying to find the documentation for the constructor of the
base TThread

I'm looking at the SortThds Demo. The constructor of one of the threads calls

TThread(false) // This passes an argument

The help system pulls up the help for TThread. It lists properties, methods and events. But it doesn't mention the constructor.

Where is the constructor documented ?

Is this a base class argument ?

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 3, 2014 11:54 AM   in response to: Dan Ambrose in response to: Dan Ambrose
Dan wrote:

I'm trying to find the documentation for the constructor of
the base TThread

http://docwiki.embarcadero.com/Libraries/XE5/en/System.Classes.TThread.Create

The help system pulls up the help for TThread. It lists properties,
methods and events. But it doesn't mention the constructor.

Look at the Create() method. Create() is a constructor in Delphi. TThread
(and most of the RTL/VCL) is written in Delphi.

Is this a base class argument ?

Yes. It is setting the constructor's CreateSuspended argument.

--
Remy Lebeau (TeamB)
Dan Ambrose

Posts: 87
Registered: 12/11/03
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 8:10 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Dan wrote:

I'm trying to find the documentation for the constructor of
the base TThread

http://docwiki.embarcadero.com/Libraries/XE5/en/System.Classes.TThread.Create

The help system pulls up the help for TThread. It lists properties,
methods and events. But it doesn't mention the constructor.

Look at the Create() method. Create() is a constructor in Delphi. TThread
(and most of the RTL/VCL) is written in Delphi.

Is this a base class argument ?

Yes. It is setting the constructor's CreateSuspended argument.

--
Remy Lebeau (TeamB)

I don't have much Delphi experience. I didn't know that Create() method was the C++ Constructor.
What is the name of the destructor method ?
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 8:35 PM   in response to: Dan Ambrose in response to: Dan Ambrose
Dan Ambrose wrote:

I don't have much Delphi experience. I didn't know that Create() method was the C++ Constructor.
What is the name of the destructor method ?

Destroy

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted corridors of Whitehall.
(Fish)

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TApplication main thread and TThread
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 8:44 PM   in response to: Dan Ambrose in response to: Dan Ambrose
Dan wrote:

I don't have much Delphi experience. I didn't know that Create()
method was the C++ Constructor. What is the name of the destructor
method ?

Destroy()

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02