OberonCore
https://forum.oberoncore.ru/

Caret's Blink will freeze after 49.7 days
https://forum.oberoncore.ru/viewtopic.php?f=131&t=5254
Страница 1 из 1

Автор:  maliya [ Суббота, 22 Ноябрь, 2014 07:06 ]
Заголовок сообщения:  Caret's Blink will freeze after 49.7 days

bug:
for the Controllers.TickMsg.tick is get value from WinApi.GetTickCount() which will be overflow after 49.7days after the machine start up,then the TextControllers.BlinkCaret cant do a correct check, the blink of caret will not happen .

patch:

1,Controllers
Код:
   TickMsg* = RECORD (Message) 
         tick*: LONGINT(*INTEGER*)   (** IN **)
   END;

2,HostWindows.Idle
Код:
      IF w.frame # NIL THEN
         tick.tick := Services.Ticks();(*WinApi.GetTickCount();*)
         w.ForwardCtrlMsg(tick)
      END;

3,
TextControllers.BlinkCaret
Код:
      PROCEDURE BlinkCaret (c: StdCtrl; f: Views.Frame; tick: LONGINT(*INTEGER*));

^Q DevCompiler.CompileThis
Controllers Containers Documents HostWindows TextControllers


luowy

Автор:  Wlad [ Четверг, 14 Сентябрь, 2017 07:23 ]
Заголовок сообщения:  Re: Caret's Blink will freeze after 49.7 days

maliya писал(а):
bug:
for the Controllers.TickMsg.tick is get value from WinApi.GetTickCount() which will be overflow after 49.7days after the machine start up,then the TextControllers.BlinkCaret cant do a correct check, the blink of caret will not happen .
patch:


Проблема решена?

Автор:  Иван Денисов [ Четверг, 14 Сентябрь, 2017 10:03 ]
Заголовок сообщения:  Re: Caret's Blink will freeze after 49.7 days

Wlad писал(а):
maliya писал(а):
bug:
for the Controllers.TickMsg.tick is get value from WinApi.GetTickCount() which will be overflow after 49.7days after the machine start up,then the TextControllers.BlinkCaret cant do a correct check, the blink of caret will not happen .
patch:


Проблема решена?

В сборке Центра и в сборке Freenix/Obertone решена.

Страница 1 из 1 Часовой пояс: UTC + 3 часа
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/