nicolaus wrote:I have here a prob with jaPBe and the shortcut STR+Z. If I use this 3-4 sometimes, very fast, one after the other, jaPBe hangs itself with 100% of one core in my CPU (i have a dualcore CPU) and write alltimes in the RAM. The only way to stop this is to kill jaPBe in the Taskmanager.
I assume STR+Z is CTRL+Z (undo) ?
After each undo, jaPBe fixes the folding markers as some cosmetic glitches may occur after an undo.
To see if that's the problem, could you recompile the sources after the following changes :
BEFORE [file jaPBe.pb Line 3194]
Code: Select all
Case #menu_main_Undo
If SCI_AutoCActive()=#True : SCI_AutoCCancel() : EndIf
SCI_Undo()
; gnozal
EndCount = CountMarks(#FoldMask_End)
If EndCount
OpenCount = CountMarks(#FoldMask_Open) + CountMarks(#FoldMask_Close)
If OpenCount
If EndCount = OpenCount
FixFoldingLines()
EndIf
EndIf
EndIf
AFTER [file jaPBe.pb Line 3194]
Code: Select all
Case #menu_main_Undo
If SCI_AutoCActive()=#True : SCI_AutoCCancel() : EndIf
SCI_Undo()
; gnozal
; EndCount = CountMarks(#FoldMask_End)
; If EndCount
; OpenCount = CountMarks(#FoldMask_Open) + CountMarks(#FoldMask_Close)
; If OpenCount
; If EndCount = OpenCount
; FixFoldingLines()
; EndIf
; EndIf
; EndIf
Thanks.