Цитата:
Сообщение от
terraByteG
Так понимаю, что run - не объявлен как статический...
X++:
t = new Thread();
//t.removeOnComplete(true);
t.run(classnum(FCH_ThreadDemo), staticmethodstr(FCH_ThreadDemo, run));
class FCH_ThreadDemo
{
}
static client void main()
{
Thread t;
;
t = new Thread();
//t.removeOnComplete(true);
t.run(classnum(FCH_ThreadDemo), staticmethodstr(FCH_ThreadDemo, run));
}
static client void run(Thread t)
{
;
//sleep(2000);
info("hello");
}
вызов
FCH_ThreadDemo::main();