Go to Post Instead of giving us some wood and nails and saying "build us a box", they're handing us power tools and saying "now make us something cool" - galewind [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-04-2010, 01:04
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Threads and classes

Hello all.

How come when I make a class into a thread, I cannot use the class as an object anymore?

I'm calling it as

public Thread foo = new FooThread();

where FooThread has function bar() which printfs "FOOBAR".

Using threads, how can I call foo.bar() inside my main loop?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
do you guys attend classes regularly during the time between kickoff and shipment? Nimmy General Forum 56 26-02-2006 21:38
Descriptions and such in image threads? Billfred CD Forum Support 5 06-06-2005 10:01
Religion threads and the CD rules Billfred CD Forum Support 22 30-04-2005 14:49
FREE web design, php, and 3ds max classes Jeremy_Mc General Forum 0 31-01-2003 15:42


All times are GMT -5. The time now is 08:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi