This project has moved and is read-only. For the latest updates, please go here.

Display last selected line instead of current one


Selecting one line (mouse click) and the moving to the previous one shows the last line selected not the current.

file attachments


gonzalocontento wrote Oct 11, 2013 at 4:58 PM

in the attached image line 133 contents is shown mistakenly in 132

HagenRaab wrote Oct 14, 2013 at 2:37 PM

I cannot reproduce this. Or I don't understand the problem.

wrote Oct 14, 2013 at 4:42 PM

gonzalocontento wrote Oct 14, 2013 at 4:42 PM

In the attached image, I was in line 52 then I selected (moved the mouse to) line 51.
Contents of line 52 replaced contents in line 51.

BTW: it seems to be working when I use the keyboard to move around instead of the mouse.

Please let me know if you need any file from my configuration.

Windows 8.1 64 bits.

HagenRaab wrote Nov 21, 2013 at 10:17 PM

Actually I cannot reproduce this. Is it for all your files or just a specific one?

gonzalocontento wrote Dec 9, 2013 at 3:15 PM

Please dismiss this issue: I have reasons to believe that is some combination of hardware/driver in Windows 8.1.

My ATI FirePro 2260 is showing some additional-annoying rendering issues, even with the latest beta driver. I started to see these issues with Terminals as well.

I played with the source code and I got it to the point where the cells started to having issues. I believe it's just a combination that causes the rendering issue to show up.

Thanks for your help.

vemundha wrote Mar 13, 2014 at 2:25 PM

It's for all log files inside logexpert.

I have tracked the issue to (on my system) Nvidia driver. My DELL has both a Intel (HD Graphics 3000) and a Nvidia graphics card (Quadro 3000M). When running only the Intel card and 1 screen (the laptop screen) it's ok. But adding the Nvidia card (with more screens or enabled it inside the Nvidia control panel.. 3d settings/manage 3d settings/preferred graphics processor) then I get this issue.

I have tested with all the latest Nvidia drivers for Win8.1 and x64 (332.50 and 334.95) and get the same issue on both.

I have seen the issue on 3 installations of Win8.1 x64.

tcbhat wrote Sep 3, 2014 at 10:06 PM

I had the same issue. I fixed this by commenting out the uncommented portion and uncommenting the commented portion of this function in LogWindow.cs
    internal string[] GetColumnsForLine(int lineNumber)
        return this.columnCache.GetColumnsForLine(this.logFileReader, lineNumber, this.CurrentColumnizer, this.columnizerCallback);

        //string line = this.logFileReader.GetLogLine(lineNumber);
        //if (line != null)
        //  string[] cols;
        //  this.columnizerCallback.LineNum = lineNumber;
        //  cols = this.CurrentColumnizer.SplitLine(this.columnizerCallback, line);
        //  return cols;
        //  return null;

gonzalocontento wrote Sep 15, 2014 at 8:03 PM

Awesome I applied your fix and it works

Not sure if it is safe change though!

I think is up to HagenRaab
       internal string[] GetColumnsForLine(int lineNumber)
            var line = logFileReader.GetLogLine(lineNumber);
            if (line == null)
                return null;

            columnizerCallback.LineNum = lineNumber;
            var cols = CurrentColumnizer.SplitLine(columnizerCallback, line);
            return cols;

vemundha wrote Feb 6, 2015 at 5:55 AM

Same issue on 1.5.5493. Tested today. I noticed that the issue is only when you click lines using the mouse and not when you move up/down with the keyboard (if that is helpful information for anyone).

HagenRaab wrote Feb 8, 2015 at 12:58 PM

Hi guys,

I still cannot reproduce this on any of my systems (Win7 32 and Win7 64). The fix of user 'tcbhat' disables the column cache. This is perfectly safe. The cache was introduced due to performance issues of the RegEx columnizer.

Anyway I'd like to solve the problem. So it would be nice if some of you could send me the configuration (Settings Export) plus an example file. Please also state if you use any columnizer and highlight settings.


wrote Feb 12, 2015 at 3:45 PM

gonzalocontento wrote Feb 12, 2015 at 3:45 PM

Please see attachment.

For your convenience, I got rid of columnizers and highlighters. Same issue.


wrote Mar 6, 2015 at 8:36 AM

wrote Mar 12, 2015 at 4:43 PM

wrote May 13, 2015 at 12:08 PM

vemundha wrote May 13, 2015 at 12:08 PM

@hagenraab any progress on this?
I have attached the testdata from my email to you 9.feb.

Since February I have upgrade to Win10 - same issue! (And again: like I said it's not there if I run using only the laptop screen on my Dell 6800, with Nvidia K4100M. But running docked and with 2 screens (or 3 screens) I always get this issue. And I have seen this issue on multiple laptop's running Win8 and dual screen.

Let me know if you need more info.

I tested with 1.5.5493.
Is there any log files. I checked %temp% did not see any straight away. If there is give me the path and I'll fw it.

In the image (attachment: debugData - line text showing the issue. I did this.
  1. Open the file
  2. Clicked on line 6
  3. Clicked on line 5
  4. MADE A screen shoot ;)

HagenRaab wrote May 23, 2015 at 4:35 PM


I just tested with your attached file. I also imported your settings. Still cannot reproduce on Windows 7 (running in Parallels on Mac). At work I also have 2 screens attached to a Laptop. I never spotted this issue. But it's also Win7 at work.

HagenRaab wrote May 23, 2015 at 5:01 PM

Now also tested on Win 8.0 (running in Parallels on iMac). Still cannot reproduce. But as said: It's not a Laptop.

LeoRomano wrote Jun 17, 2015 at 3:40 AM

The issue is on WIN 8.1 64 bit for sure as I've tried it on real hardware and a Hyper-V VM and can reproduce the issue.
Since it's bugging me so much, and it makes the app look bad to others (I think the tool is great but still learning it), I'll try out the fixes suggested and report back.

HagenRaab, thanks for the great product and work you've put into this!

nclemeur wrote Oct 2, 2015 at 12:18 AM

I can confirm that issue seems to be fixed in 1.6 alpha /5734. I had this issue with 1.5 which was quite annoying.

Thank you for this great app.

vemundha wrote Oct 13, 2015 at 12:54 PM

Same here. The alpha (1.6.5734) works fine! No issues with last selected text :) Hope you have a beta version soon ;)

MDouglas wrote Feb 17, 2016 at 9:23 AM

I also had the same issue on a DELL OptiPlex 9020 running Windows 10 x64. Installing the latest 1.6 ALPHA build 5883 fixes the issue (as long as the cache option is kept disabled).

mcmoutletyy wrote Jun 27, 2016 at 2:29 AM

wrote Sep 11, 2016 at 4:18 PM

Associated with changeset 35110: Merge branch 'Bug-1710-long-lines'

changed method to test if it triggers the problem

replaced all CurrentLogFileReader.GetLogLine with GetLine method

removed unused class

renamed file IBackgroundProcessCancelHandler

renamed interface IBackgroundProcessCancelHandler

fixed build erros

undo config changes

fixed behavior to act more like the old coding still under development

added logging to catch blocks

removed completly old logger class

replaced old logger with nlog

introduced nlog partial (safety commit ;) )

replaced fields with properties

Merge branch 'refactoring' into branches/refactoring

reenabled unit test build, fixed in CI nuget restore

BREAKING changed config to xmlSerializer

changed output path for plugins to ../bin/LogExpert/Plugins

reenabled unit test build, fixed in CI nuget restore

BREAKING changed config to xmlSerializer

changed output path for plugins to ../bin/LogExpert/Plugins

changed output path for plugins to ../bin/LogExpert/Plugins

updated solution binding

changed output path

Merge branch 'branches/refactoring' of into branches/refactoring

changed output path and added .gitignore

excluded Unit test projects in release build configuration

Merge branch 'branches/refactoring' of into branches/refactoring

Merge branch 'branches/refactoring' of into branches/refactoring

excluded Unit test projects in release build configuration

fixed wrong NET version for NUnit

fixed wrong NET version for NUnit

changed line to be compatible to NET 3.5

updated columnizer projects to .NET 4.0

upgraded all projects to .NET 4.0
small bugfix in ProcessLauncher with index in substring
fixed plugin registry to check plugin folder and parent folder
added another unit test project but at the moment it does not really work

added option to disable column cache
tabified ConfigManager and SettingsDialog

moved filtergrid and datagrid CurrentCellAddress.Y to property
and another method moved to base

changed verrsion 1.6
some refactoring

some refactoring

moved delegate to field
introduced string format

minro changes

removed duplicate fields, methods,
moved files to new folders
created files for classes
moved outptu to ..\bin

removed unused class
minor formatting

refactored bookmarks
moved bookmark related events to BookmarkDataProvider
introduced new property BookmarkProvider

splitted hilight file
minor refactoring

minor refactoring
removed this, reordered methods, props,
removed vs hosting process

removed unused CmdLine.cs
Win32 removed unused method
added some braces and removed this.
HighlightEntry fixed misspeled assign in Entry

some refactoring
LogWindow removed some methods/variables that hides base members

minor refactoring in paramparser
added some braces to pluginRegestry

changed of some classes the accessor
moved external call to win32 class
some more refactoring
removed unused methods

some refactoring

removed unused delegate

refactored delegate to use type FilterPipe to avoid cast and removed unused parameter

refactored filter pipe
  • renamed variables
  • created regions
  • removed this
  • introduced using
refactored Filter.cs
  • removed this, unused variables
  • refactored to autoimplement property
  • renamed fields
  • changed to string format
  • ..
pulled ColumnizerCallback and LogExpertCallback to extra files
refactored some variables and introduced property for _logFileReader

fixed wrong assigment in constructor of Columnizer Callback

removed copy in build events

possible fix for issue #1155

merged changes from HagenRaab changeset 32577
including fix for #1432

removed empty else block
removed this.
added if to _calcThread.Join and only Abort on timeout

replaced EventHandler with Action not necessary to create so much objects and pass them around
merged both Calc methods in one method
replaced SetDisplayHeight with property

added new class BaseLogWindow only for refactoring
started to clean up TimeSpreadCalculator, moved SpreadEntry to new file

removed unused property sessionFileName inclusive persister field
moved LogWindowClosing to event region

minor refactoring
intrudoced method for progressBarInit
moved private method to region

removed this.

replaced some fields with auto implement properties

removed unused methods

removed LoadingFinishedFx, was always null

replaced where possible non generic delegates with generic delegates

replaced PatternStatisticFx with generic action

removed useless if

removed QualityInfo from this file

Moved fuzzyBlockDetection to extra class
moved QualityInfo to extra file
intrudoced new interface for fuzzyBlockDetection

Moved Damerau- and YetiLevenshtein to extra files
added surrounding block for one line ifs

replaced Util.IsNull with string.IsNullOrEmpty

Util.cs added regions

removed unused method FindSimilarLine1

renamed fields

removed unused field _bookmarkColor
removed unecessary this
added braces to if and for
changed double casts to one safe cast with null check

removed unused or only assigned to variables

replaced field call with property
replaced property with backing field with auto property

replaced field call with property
replaced property with backing field with auto property

removed duplicate code SelectLine

removed commented out code fragments

hopefully added to all ifs braces

added braces to some ifs

added some more regions to events

fixed tabs

moved filter paint cell method to PaintHelper
replaced PaintCell method with PaintHelper method

removed redudant method CellPainting and replaced it with call in PaintHelper

removed redudant PaintHighlightedCell method

removed redudant method BorderWiths from LogWindow
changed accesor to public

moved methods to regions and some refactoring

moved CmdLine to new folder

undo wrong delete of CmdLine.cs

file reordering
  • upgraded projects to .NET 3.5
  • *.Designer.cs minor changes in comments and generator version
changed ColumnizerLib reference to project reference
  • upgraded to vs2012 (the old vs 2008 sln still exists and working)
  • *.designer.cs minor changes like comments and used tools version
  • binded / added sln 2012 to source control
Logexpert.csproj changed PostBuildEvent, added /y parameter to override existing files

binded projects and solution to tfs

added dockpanelsuite from checkin 115 (MIT license see $/logexpert/branches/refactoring/WinFormsUI/license.txt)
  • moved LogExpert.sln to parent folder
  • removed slash from post build in LogExpert.csproj
Branched from $/logexpert/trunk