CnPack Forum

#1 转贴：有朋友报告的CnThreadPool.pas中可能有的问题。
1 、用TerminateThread过程会强制结束线程，这里会造成任务中来不及释放的对象内存泄漏，

2、

procedure TCnThreadPool.KillDeadThreads;

var

i: Integer;

begin

if csThreadManagment.TryEnter then

try

for i := 0 to FThreads.Count - 1 do

if TCnPoolingThread(FThreads[i]).IsDead then

begin

if FDeadTaskAsNew then

begin

if TCnPoolingThread(FThreads[i]).FProcessingDataObject <> nil then ..

#1 >>Next Page

Forum:CnVCL 组件包
Thread:转贴：有朋友报告的CnTh ...
Next Thread:图像水纹(水泡)如何实 ...

Home
Login

Powered by Discuz!