无效的窗口句柄是啥意思?(40分)

  • 主题发起人 主题发起人 lcl_003
  • 开始时间 开始时间
L

lcl_003

Unregistered / Unconfirmed
GUEST, unregistred user!
我在现成里循环的判断一个窗体的多个实例是否存在,但是有的时候(不确定,单步走捕捉
不到)总是提示无效的窗口句柄。该怎么解决?
 
代码贴出来!
 
procedure MyThread.Execute;
var
i,jj:byte;
begin
freeOnTerminate := true;
while( not terminated) do
Synchronize(seechartview);
end;


procedure mythread.seechartview();
var
i:byte;
begin
if (recv40[2]=40) and (recv40[3]=1) then
if chartview1<>nil then
for i:=0 to high(chartview1) do
begin
if chartview1[1]<>nil then
chartview1.Timer1.Enabled:=true;
end;
end;
 

for i:=0 to high(chartview1) do
begin
if chartview1[1]<>nil then ...
~~~~改成i
 
接受答案了.
 

Similar threads

S
回复
0
查看
860
SUNSTONE的Delphi笔记
S
S
回复
0
查看
787
SUNSTONE的Delphi笔记
S
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
928
SUNSTONE的Delphi笔记
S
后退
顶部