posted 18 years ago
Hi:
I guess the reason for compilation error in Static context is that, The static methods don't have "this" reference. Since the static members of a class are not associated with any object instead they are of class only. hence, they can't have "this" reference.
Whereas when u call it in a non static method, u can easily pass "this" to the threads constuctor. As that methods must have "this" reference.
About the threads Constructor, I can't say much until I see the code...If "this" is refering to a runnable target then u can surely pass it in threads constructor...
Regards
swapnil
SCJP 5.0<br />-----------<br />"Help Ever && Hurt Never"