A
angel725
Unregistered / Unconfirmed
GUEST, unregistred user!
type <br> tTread1=class(TThread)<br> private<br> protected<br> procedure Execute;override;<br>end;<br>procedure TThead1.excute;<br>begin<br> 调用函数1<br>end;<br>再用相同方定义第二个线程对象<br> 然后在onFormcreate中<br> Thread1:=tthread1.Create(true);<br> Thread2:=tthread2.Create(true);<br>然后再在Ontimertimer中<br> Thead1.Resume();<br> Thead2.Resume();<br>用这个方法,在form1的oncreste事件中创建5个线程,<br>在onclose中分别对它们free<br>可是程序关闭时还是超级慢,<br><br>怎么回事,有什么方法在关闭时能快些