Вверх ↑
Разработчик
Ответов: 26155
Рейтинг: 2127
#1: 2013-04-17 17:24:27 ЛС | профиль | цитата
host-109-235-189-9.bisv.r писал(а):
но вот если вторую ссылку заменить на "asbasdbasd.ru"

Не подвисает, совсем

http_get_multi_)001.png
------------ Дoбавленo в 17.24:
Можно еще отключение добавить, чтобы не занимать ресурсы

Add(Button,11739294,154,189)
{
Left=100
Top=395
Width=165
Height=40
Data=String()
link(onClick,10526727:doFor,[])
}
Add(ChildPanelEx,5811607,329,182)
{
Mode=1
}
BEGIN_SDK
Add(EditMultiEx,15435750,21,21)
{
WorkCount=#5:##add|8:##select|
Width=468
Height=305
VOffset=7
Point(##add)
Point(##select)
link(##add,3250669:doValue,[])
link(##select,8025464:doEvent1,[(39,41)(39,83)])
}
Add(Panel,11326120,140,28)
{
Left=5
Top=5
Width=373
Height=122
Layout="parent.vv"
}
Add(HTTP_Get,2944567,91,91)
{
link(onStatus,14707583:doPosition,[(158,97)(158,125)])
link(onDownload,8399227:doCopy,[(130,104)(130,76)])
link(onURLSize,1228704:doEvent1,[(151,111)(151,160)])
link(onStop,11487333:doEvent1,[(144,118)(144,265)])
link(URL,3250669:Value,[])
}
Add(MemoryStream,8399227,329,70)
{
Point(doPosition)
}
Add(If_else,3419385,196,161)
{
Type=2
Op2=Integer(0)
link(onTrue,2560188:doData,[])
link(onFalse,2945122:doData,[(256,174)(256,209)])
}
Add(Label,7768796,385,161)
{
Left=10
Top=10
Width=165
Height=17
Caption=""
AutoSize=1
}
Add(DoData,2560188,266,161)
{
Data=String(что-то есть)
link(onEventData,14090237:doWork2,[])
}
Add(DoData,2945122,266,203)
{
Data=String(пусто)
link(onEventData,2294266:doEvent1,[])
}
Add(Hub,8025464,49,77)
{
OutCount=3
link(onEvent1,8399227:doClear,[])
link(onEvent2,2944567:GetURLSize,[(74,90)(74,111)])
link(onEvent3,2944567:doDownload,[])
}
Add(ProgressBar,14707583,196,119)
{
Left=185
Top=10
Width=180
Point(doMax)
}
Add(Memory,3250669,91,28)
{
}
Add(Image,5234130,385,252)
{
Left=15
Top=40
Width=110
Height=75
}
Add(HubEx,14090237,350,161)
{
link(onEvent,7768796:doText,[])
}
Add(Hub,1228704,161,154)
{
link(onEvent1,14707583:doMax,[(186,160)(186,132)])
link(onEvent2,3419385:doCompare,[])
}
Add(Jpeg,7507809,329,252)
{
Point(Stream)
Point(doLoadFromStream)
Point(doBitmap)
link(onBitmap,5234130:doLoad,[])
link(Stream,8399227:Stream,[])
}
Add(Hub,11487333,154,259)
{
OutCount=3
link(onEvent1,8399227:doPosition,[(235,265)(235,90)])
link(onEvent2,7507809:doLoadFromStream,[])
link(onEvent3,7507809:doBitmap,[])
}
Add(Hub,2294266,315,203)
{
link(onEvent1,14090237:doWork3,[(354,209)])
link(onEvent2,2944567:doStop,[(424,216)(424,293)(81,293)(81,104)])
}
END_SDK
Add(MainForm,16294721,154,126)
{
Height=494
Position=1
link(onCreate,16598175:doFor,[])
}
Add(VBoxLayout,10021512,154,84)
{
Name="vv"
}
Add(For,16598175,210,140)
{
IncludeEnd=1
link(onEvent,9202441:doGetString,[])
link(End,14751944:Var3,[(223,131)(251,131)])
}
Add(For,10526727,238,189)
{
link(onEvent,5811607:##select,[])
link(End,14751944:Var2,[])
}
Add(StrList,9202441,266,98)
{
Strings=#47:http://imageshack.us/a/img826/2092/10003761.jpg|13:asbasdbasd.ru|47:http://imageshack.us/a/img836/2720/10003651.jpg|
Point(doGetString)
Point(onGetString)
link(onGetString,5811607:##add,[(319,111)(319,188)])
}
Add(GetDataEx,14751944,245,161)
{
Angle=1
link(Data,9202441:Count,[(279,166)])
}


А лучше вообще не запускать, если пусто

Add(Button,11739294,154,189)
{
Left=100
Top=395
Width=165
Height=40
Data=String()
link(onClick,10526727:doFor,[])
}
Add(ChildPanelEx,5811607,329,182)
{
Mode=1
}
BEGIN_SDK
Add(EditMultiEx,15435750,21,21)
{
WorkCount=#5:##add|8:##select|
Width=468
Height=305
VOffset=7
Point(##add)
Point(##select)
link(##add,3250669:doValue,[])
link(##select,8025464:doEvent1,[(32,41)(32,83)])
}
Add(Panel,11326120,140,28)
{
Left=5
Top=5
Width=373
Height=122
Layout="parent.vv"
}
Add(HTTP_Get,2944567,91,91)
{
link(onStatus,14707583:doPosition,[(158,97)(158,125)])
link(onDownload,8399227:doCopy,[(130,104)(130,76)])
link(onURLSize,1228704:doEvent1,[(151,111)(151,160)])
link(onStop,11487333:doEvent1,[(144,118)(144,265)])
link(URL,3250669:Value,[])
}
Add(MemoryStream,8399227,329,70)
{
Point(doPosition)
}
Add(If_else,3419385,196,161)
{
Type=2
Op2=Integer(0)
link(onTrue,2560188:doData,[])
link(onFalse,2945122:doData,[(256,174)(256,209)])
}
Add(Label,7768796,385,161)
{
Left=10
Top=10
Width=165
Height=17
Caption=""
AutoSize=1
}
Add(DoData,2560188,266,161)
{
Data=String(что-то есть)
link(onEventData,13712841:doEvent1,[])
}
Add(DoData,2945122,266,203)
{
Data=String(пусто)
link(onEventData,14090237:doWork3,[(354,209)])
}
Add(Hub,8025464,42,77)
{
link(onEvent1,8399227:doClear,[])
link(onEvent2,2944567:GetURLSize,[(74,90)(74,111)])
}
Add(ProgressBar,14707583,196,119)
{
Left=185
Top=10
Width=180
Point(doMax)
}
Add(Memory,3250669,91,28)
{
}
Add(Image,5234130,385,252)
{
Left=15
Top=40
Width=110
Height=75
}
Add(HubEx,14090237,350,161)
{
link(onEvent,7768796:doText,[])
}
Add(Hub,1228704,161,154)
{
link(onEvent1,14707583:doMax,[(186,160)(186,132)])
link(onEvent2,3419385:doCompare,[])
}
Add(Jpeg,7507809,329,252)
{
Point(Stream)
Point(doLoadFromStream)
Point(doBitmap)
link(onBitmap,5234130:doLoad,[])
link(Stream,8399227:Stream,[])
}
Add(Hub,11487333,154,259)
{
OutCount=3
link(onEvent1,8399227:doPosition,[(235,265)(235,90)])
link(onEvent2,7507809:doLoadFromStream,[])
link(onEvent3,7507809:doBitmap,[])
}
Add(Hub,13712841,308,161)
{
link(onEvent1,14090237:doWork2,[])
link(onEvent2,2944567:doDownload,[(368,174)(368,300)(67,300)(67,97)])
}
END_SDK
Add(MainForm,16294721,154,126)
{
Height=494
Position=1
link(onCreate,16598175:doFor,[])
}
Add(VBoxLayout,10021512,154,84)
{
Name="vv"
}
Add(For,16598175,210,140)
{
IncludeEnd=1
link(onEvent,9202441:doGetString,[])
link(End,14751944:Var3,[(223,131)(251,131)])
}
Add(For,10526727,238,189)
{
link(onEvent,5811607:##select,[])
link(End,14751944:Var2,[])
}
Add(StrList,9202441,266,98)
{
Strings=#47:http://imageshack.us/a/img826/2092/10003761.jpg|13:asbasdbasd.ru|47:http://imageshack.us/a/img836/2720/10003651.jpg|
Point(doGetString)
Point(onGetString)
link(onGetString,5811607:##add,[(319,111)(319,188)])
}
Add(GetDataEx,14751944,245,161)
{
Angle=1
link(Data,9202441:Count,[(279,166)])
}

карма: 22

0
файлы: 1http_get_multi_)001.png [101.4KB] [320]