L
leobug
Unregistered / Unconfirmed
GUEST, unregistred user!
一个简单的程序,用TThread启动一个线程,执行过程中经常出现界面不响应的情况。
界面上已经没有什么程序了,我该如何处理?
线程代码如下:
procedure T_Test_Thread.Execute;
begin
while not Terminateddo
begin
MyClass.Do_sth();
sleep(1000);
end;
end;
线程启动如下:
T_Test_Thread.Resume;
中间会有多次的Resume和suspend
madExcepion 的bug report 如下
process id : $aec
allocated memory : 5.22 MB
executable : Project1.exe
exec. date/time : 2007-03-18 01:19
madExcept version : 2.7i
exception message : The application seems to be frozen.
main thread ($e44):
7c92eb94 +00 ntdll.dll KiFastSystemCallRet
77d1ca62 +f6 user32.dll PeekMessageA
00483823 +13 Project1.exe Forms TApplication.ProcessMessage
004838b2 +0a Project1.exe Forms TApplication.HandleMessage
00483ad2 +96 Project1.exe Forms TApplication.Run
004880cf +3b Project1.exe Project1 16 +3 initialization
disassembling:
7c92eb94 public KiFastSystemCallRet: ;
function entry point
7c92eb94 > ret
界面上已经没有什么程序了,我该如何处理?
线程代码如下:
procedure T_Test_Thread.Execute;
begin
while not Terminateddo
begin
MyClass.Do_sth();
sleep(1000);
end;
end;
线程启动如下:
T_Test_Thread.Resume;
中间会有多次的Resume和suspend
madExcepion 的bug report 如下
process id : $aec
allocated memory : 5.22 MB
executable : Project1.exe
exec. date/time : 2007-03-18 01:19
madExcept version : 2.7i
exception message : The application seems to be frozen.
main thread ($e44):
7c92eb94 +00 ntdll.dll KiFastSystemCallRet
77d1ca62 +f6 user32.dll PeekMessageA
00483823 +13 Project1.exe Forms TApplication.ProcessMessage
004838b2 +0a Project1.exe Forms TApplication.HandleMessage
00483ad2 +96 Project1.exe Forms TApplication.Run
004880cf +3b Project1.exe Project1 16 +3 initialization
disassembling:
7c92eb94 public KiFastSystemCallRet: ;
function entry point
7c92eb94 > ret