Threads

Robert Jacques sandford at jhu.edu
Wed Nov 19 10:31:25 PST 2008


On Wed, 19 Nov 2008 13:26:32 -0500, DF <deefriend at ymail.com> wrote:

> void main() {
> 	Thread derived = new DerivedThread();
> 	derived.start();
> }

The main thread is exiting before the derived thread runs. This works  
correctly:
	Thread derived = new DerivedThread();
	derived.start();
	derived.wait;



More information about the Digitalmars-d mailing list