GPFault 0 Report post Posted February 23, 2006 Hi! NDN dump/hex mode is designed as greatest hex editor i know, but unfortuantly it is VERY buggy. AH, do you plan to copletely rewrite it some day(so dump/hex bugreports are quite useless now), or it will be improved step by step (so bugreports are useful)? Some bugs are listed below. Tested in 2.15.7104(w32) in XP SP1 1.1 dump/hex mode: copy some text into clipboard create empty file, position on it F3,F4,F4 Shift+Ins - if there is not a crash you a lucky - you can see 2 more bugs :) Ctrl+Pgdn Shift+Ins - last char is lost and there is extra 0 at the end(1st bug) (this will be for any block even 1 byte, this bug is seemed not to be related to buffer size) Press Esc and lose your changes without confirmation(2nd bug) 1.2 dump/hex mode: If file is or become empty pressing a key results in crash 1.3 dump/hex mode: After / in statusline is shown last offset We have 0 there for empty files and for 1-byte files too - it seems strange to me What about showing size there?(i`ve never seen another program that show last offset somewhere, but may be somebody find it useful - so it`s only an idea to think about) i suppose that bugs above are consequences of a global ndn hex/dump mode bug - absence of after-end-position of cursor imho hex editors that support inserting should had after-end-position of cursor. (as any text editors has) Logically in file with N symbols there is N+1 positions to insert char/block Original DN hadn`t this position, but it hadn`t insert/delete features in dump too. buffer-related bugs: 2.1 dump/hex mode: Block delete(Ctrl+Del) delete extra symbol after block too if file size is greater than buffer size 2.2 dump/hex mode: Block copy(Ctrl+Ins) may crash. To reproduce: clear view history(if this file was viewed before) open a file much greater than buffer size; (for default buffer size 65536 65566-byte file is enough, for some other sizes even size+10000 is not enough - so take a big file) F4 (to DUMP mode) Ctrl+Shift+PgDn Ctrl+Ins - crash 2.3 dump/hex mode: Wrong block selection position for files that are greater than buffer. To reproduce: clear view history open file greater than buffer size F4 (to DUMP mode) Ctrl+PgDn Shift-Left - block begins to be selected at quite random place 2.4 all view modes: Last char in (buffersize+1)byte file is always shown as #0 2.5 all view modes: If buffer size is set to small value (100) files with size more than buffer but less than 32768 are shown as empty files Share this post Link to post Share on other sites
AngelsHolocaust 0 Report post Posted February 24, 2006 hi! i won't rewrite it completely, the design is fine work on the viewer was the first thing i ever did in NDN (was/is unusable to me in the source i got, or in the other DN branches) i know there are many bugs concerning inserting/deleting bytes, after all i did major code changes the past years, and i had to support many circumstances, it will improve, promised :) your bug reports are welcome Stefan / AH Share this post Link to post Share on other sites