Project

General

Profile

Bug #21

Updated by I. Denisov almost 11 years ago

*Problem*: if you    do not power down your computer    or restart it up to 49.7days, you    49.7days ,you will find the the caret of the BB editor frozen, not blinking will be freezed,not blink at all. 

 *Reason*: the Controllers.TickMsg.tick 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 blink. 

 *My Patch*: 

 1. Controllers 
 <pre> 
    TickMsg* = RECORD (Message)  
          tick*: LONGINT(*INTEGER*)     (** IN **) 
    END; 
 </pre> 

 2. HostWindows.Idle 

 <pre> 
      IF w.frame # NIL THEN 
          tick.tick := Services.Ticks();(*WinApi.GetTickCount();*) 
          w.ForwardCtrlMsg(tick) 
      END; 
 </pre> 


 3. TextControllers.BlinkCaret 
 <pre> 
       PROCEDURE BlinkCaret (c: StdCtrl; f: Views.Frame; tick: LONGINT(*INTEGER*)); 
 </pre> 


 compile these modules: 

 <pre> 
 ^Q DevCompiler.CompileThis Controllers Containers Documents HostWindows TextControllers 
 </pre>

Back