用kol做一个窗口,调用dll(http 下载dll)
运行至下面的语句是就没反应了,constructor TDownloadJob.Create(DownloadURL,SavedPath: string; JobID:integer;AutoStart: Boolean);
begin
sDownloadURL := DownloadURL;
sSavedPath := SavedPath; iThreadCount := 5;//ThreadCount;
iStaus := 0;
iResSize := 0;
iResDownloadSize := 0;
iResThisDownloadSize := 0;
bStop := False;
iJobID := JobID; iIndex := DownloadJobs.Add(Self) + 1; //(这里有问题,self在kol中是不是找不到地址了?) //启动下载线程
if AutoStart then
TDownloadManager.Create(Self,sDownloadURL,sSavedPath,iThreadCount);
end;destructor TDownloadJob.Destroy;
begin
inherited;
end;
运行至下面的语句是就没反应了,constructor TDownloadJob.Create(DownloadURL,SavedPath: string; JobID:integer;AutoStart: Boolean);
begin
sDownloadURL := DownloadURL;
sSavedPath := SavedPath; iThreadCount := 5;//ThreadCount;
iStaus := 0;
iResSize := 0;
iResDownloadSize := 0;
iResThisDownloadSize := 0;
bStop := False;
iJobID := JobID; iIndex := DownloadJobs.Add(Self) + 1; //(这里有问题,self在kol中是不是找不到地址了?) //启动下载线程
if AutoStart then
TDownloadManager.Create(Self,sDownloadURL,sSavedPath,iThreadCount);
end;destructor TDownloadJob.Destroy;
begin
inherited;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货