Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Delphi, .NET, Asm (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   Поток в INDY (https://forum.antichat.xyz/showthread.php?t=206073)

reger1992 23.05.2010 08:25

Поток в INDY
 
Всем привет, создаю многопоточное приложение, в каждом потоке динамически создаю индейца. Потом делаю запрос на антикапчу:

Цитата:


procedure Torrent.capthca;
var cap:array [1..1000] of TIdMultiPartFormDataStream;
cap_id: array [1..1000] of string;
i:integer;
response2:array [1..1000] of tstringlist;
begin
response2[num]:=Tstringlist.Create();
IDHTTP2[num]:=TIDHTTP.Create(nil);
IDHTTP2[num].HandleRedirects:=true;
IDHTTP2[num].AllowCookies:=true;
cap[num]:=TIdMultiPartFormDataStream.Create;
cap[num].AddFormField('method','post');
cap[num].AddFormField('key','cd68a7198ea23eb4a77c179d4775e 899');
cap[num].AddFile('file',GetCurrentDir+'\'+inttostr(num)+'. jpg','image/jpeg');
response2[num].text:=IDHTTP2[num].Post('http://antigate.com/in.php',cap[num]);

cap_id[num]:=copy(response2[num].Text,4,9);
sleep(5000);

response2[num].text:=IDHTTP2[num].Get('http://antigate.com/res.php?key='+antigatekey'+'&action=get&id='+cap_i d[num]);
И вот этот GET запрос не выполняется, хотя неделю назад все работало. Что это может быть?

yaneblinchik 23.05.2010 09:01

https://forum.antichat.ru/thread202660-indy.html
https://forum.antichat.ru/thread203952-indy.html
https://forum.antichat.ru/thread201935-indy.html
https://forum.antichat.ru/thread198556-indy.html
https://forum.antichat.ru/thread181270-indy.html
https://forum.antichat.ru/thread179587-indy.html
https://forum.antichat.ru/thread179493-indy.html
https://forum.antichat.ru/thread175605-indy.html
https://forum.antichat.ru/thread175115-indy.html
https://forum.antichat.ru/thread136692-indy.html
https://forum.antichat.ru/thread131214-indy.html
https://forum.antichat.ru/thread101254-indy.html
Анализируй,разбирайся. Сколько тем на счет этого завелось...

reger1992 23.05.2010 10:02

Тем то создано, но все не о том .У меня все работало до вчера. Пробывал вставлять исключения try except end; все равно не работает...

Подозрение есть, что какие -то библиотеки заменились.

M_script_ 24.05.2010 17:14

Цитата:

Сообщение от reger1992
Тем то создано, но все не о том .У меня все работало до вчера. Пробывал вставлять исключения try except end; все равно не работает...

Подозрение есть, что какие -то библиотеки заменились.

Есть такая полезная вещь - Breakpoint. Попробуй, помогает.


Время: 06:58