chcg / NPP_HexEdit

Notepad++ Plugin Hexedit
825 stars 156 forks source link

How to solve this 'Dump view' randomly flashing bad characters? #35

Closed KnIfER closed 4 years ago

KnIfER commented 4 years ago

20200908_233955_GifNo 1

HexEditor_0.9.6_x86.zip + npp.7.8.9 x32

encoding=utf8

sample text: textfile.txt

KnIfER commented 4 years ago

https://github.com/mackwai/NPPHexEditor

KnIfER commented 4 years ago

after reviewing the repo above , this is the best I can achieve:

image (2)

The "flashing bad characters" problem is related to c++/optimization, and code generation/basic runtime checks. Really strange.

Maybe I should replace the trailing with

KnIfER commented 4 years ago

Caused by an uninitialized buffer during the custom drawing callback.

https://github.com/chcg/NPP_HexEdit/blob/e36f71fc9d30ec238a1989ae7b486e4282a83a2d/HexEditor/src/HEXDialog.cpp#L3209