Recent

Author Topic: Trreeview bug ???  (Read 1386 times)

docno

  • New Member
  • *
  • Posts: 16
Trreeview bug ???
« on: November 08, 2017, 03:28:30 pm »
Hello to all.
I got à little problem with lazarus 1.8.0RC5 x64 on windows 10 1709 x64.

1/Create new app.
2/Put in form a treeview.
3/Right click on it and select, on popup menu : edit elements
4/Click Load and select à txt file (intentionaly malformed) like this :

Code: Pascal  [Select][+][-]
  1. aaaa
  2. bbbb
  3.  <tab>          ccccc
  4.  <tab>          ddddd
  5.   <tab><tab><tab><tab><tab>                                             eeeee
  6.  
  7.  

For the line eeee, many tabs.
I got a error message : ttreestrings.loadtreefrommstream : level=6
If i click abort then a box appear : read error with access violation on it and lazarus quit immediately.


balazsszekely

  • Guest
Re: Trreeview bug ???
« Reply #1 on: November 08, 2017, 06:08:33 pm »
Works fine with Lazarus trunk. No error whatsoever.

docno

  • New Member
  • *
  • Posts: 16
Re: Trreeview bug ???
« Reply #2 on: November 08, 2017, 06:57:30 pm »
You must replace the <tab> by true TAB in your exemple.....
The tab char make hierarchical view.

balazsszekely

  • Guest
Re: Trreeview bug ???
« Reply #3 on: November 08, 2017, 07:14:08 pm »
Quote
You must replace the <tab> by true TAB in your exemple.....
OK. I can reproduce it know. Looking at the source, it seems more like a feature then a bug.  :) The exception is intentionally raised.

 

TinyPortal © 2005-2018