Вверх ↑
Разработчик
Ответов: 26113
Рейтинг: 2126
#1: 2019-01-06 18:03:23 ЛС | профиль | цитата
Neo писал(а):
Смоделировал схему отдельно

А почему не так?
Схема


Add(MainForm,11618394,245,203)
{
Width=1024
link(onCreate,1412819:doEvent1,[])
}
Add(StringTableMT,4905930,504,217)
{
Left=170
Top=5
Width=780
Height=240
Font=[Open Sans,10,0,0,204]
Columns=#1:0|1:1|1:2|1:3|1:4|1:5|1:6|1:7|1:8|1:9|2:10|2:11|2:12|2:13|2:14|2:15|2:16|2:17|2:18|2:19|2:20|2:21|2:22|2:23|2:24|2:25|2:26|2:27|2:28|2:29|2:30|2:31|2:32|2:33|2:34|2:35|2:36|2:37|
ColumnClick=1
MinColWidth=20
MaxColWidth=120
Redaction=0
IconsCheck=[]
MiscIcons=[]
Icons=[]
FileName="online"
SaveColProp=0
SaveWidth=0
Point(Matrix)
Point(Strings)
Point(doReplace)
Point(onDblClick)
Point(doAutoColWidth)
Point(doSave)
Point(StringTable)
Point(FullTextTab)
}
Add(StrList,9385151,399,168)
{
Strings=#189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|189:2=ON/145;ON/1846;ON/7647;ON/1780;ON/1349;ON/331;ON/1;temp:NA;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;ON;OFF;OFF;OFF;OFF;;temp:NA;temp:NA;ON;ON;ON;ON;ON;ON|
}
Add(ArrayEnum,13891179,413,217)
{
link(onItem,4905930:doAdd,[])
link(Array,9385151:Array,[])
}
Add(Counter,11129683,441,308)
{
@Color=9371647
Max=999999999
link(onNext,3001738:doEvent1,[])
}
Add(Hub,3001738,490,308)
{
@Color=9371647
OutCount=3
link(onEvent1,10185819:In,[(515,314)(515,300)])
link(onEvent3,1428689:doValue,[])
}
Add(StrCat,6387568,546,385)
{
Str2=" событий"
link(onStrCat,3213322:doText,[])
link(Str1,1428689:Value,[])
}
Add(Memory,1428689,546,322)
{
}
Add(Hub,1412819,329,217)
{
link(onEvent1,13891179:doEnum,[])
link(onEvent2,13824852:doStart,[(375,230)(375,314)])
}
Add(Label,3213322,602,385)
{
@Color=9371647
Left=5
Top=10
Width=190
}
Add(LineBreak,4748382,735,294)
{
Caption="Обработка данных"
Primary=[10185819,-126,0]
}
Add(Thread,13824852,385,308)
{
Delay=100
link(onExec,11129683:doNext,[])
link(onSyncExec,6387568:doStrCat,[(431,321)(431,391)])
}


Нафига этот MMTimer нужен? И нафига там вообще SafeMode? Вообще-то работу потоков и надо делать в режиме: асинхронный -- сохраняем данные, синхронный -- даем команду на вывод сохраненных данных.
карма: 22

0