5 uses ServerLoop
,SysUtils
;
10 procedure Event1(ev
:Word);
20 writeln('TestWatch: Input handle ',h
);
24 procedure tObj
.Event1(ev
:Word);
26 writeln('TestWatch: Event1 ',IntToHex(ev
,4));
28 writeln('TestWatch: shedule ev2');
29 Shedule(1000,@Event2
);
31 procedure tObj
.Event2
;
33 writeln('TestWatch: Event2 ');
39 if OptIndex('-test-watch')>0 then begin