Bookstore

Recent

Author Topic: TVirtualStringTree change to illegal character  (Read 1593 times)

carlosib

  • New member
  • *
  • Posts: 6
TVirtualStringTree change to illegal character
« on: February 21, 2019, 01:49:09 pm »
Hello!

I add some columns to my TVirtualStringTree. It works correctly.

But, after some time the string has illegal character, for sample, see, please, image_error.png


lucamar

  • Hero Member
  • *****
  • Posts: 2561
Re: TVirtualStringTree change to illegal character
« Reply #1 on: February 21, 2019, 02:22:57 pm »
You'll have to describe a little more exactly what is your problem: The strings change by themselves? Characters are converted when adding them to the tree? Some other thing?
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.6/FPC 3.0.4 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

carlosib

  • New member
  • *
  • Posts: 6
Re: TVirtualStringTree change to illegal character
« Reply #2 on: February 21, 2019, 05:59:01 pm »
Hello!

I add the string to VST. WOrks correctly.

After sometime I have the string updated with 'illegal' character.

my PTreeData  is:

Code: Pascal  [Select]
  1.   PTreeData = ^TTreeData;
  2.   TTreeData = record
  3.     FHora,
  4.     FVideo,
  5.     FTempo,
  6.     FLogo,
  7.     FIn,
  8.     FOut,
  9.     FTipoNome,
  10.     FNomeCompletoVideo,
  11.     FNomeCompletoLogo,
  12.     FTipoValor,
  13.     FQtde : string;
  14.   end;
  15.  
  16.  

Only the string FNomeCompletoVideo has illegal character.

lucamar

  • Hero Member
  • *****
  • Posts: 2561
Re: TVirtualStringTree change to illegal character
« Reply #3 on: February 21, 2019, 07:20:48 pm »
After sometime I have the string updated with 'illegal' character.

You mean it does it by itself? You're not changing/updating the string in your code?

That sounds either like ghosts (in the shell :))* or something in your program is trashing the memory occupied by your records.


* Just in case ... this is a joke.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.6/FPC 3.0.4 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

carlosib

  • New member
  • *
  • Posts: 6
Re: TVirtualStringTree change to illegal character
« Reply #4 on: March 06, 2019, 10:56:10 am »
Hello!

I think 'trashing the memory occupied by your records'. But, How I can to fix it.

Or how I can to locate this 'illegal character. in the my record?

It is always present in 'FNomeCompletoVideo' field.

For sample. I have:

D:\Especial\M_PROG_ESP_REPRISECARNAVAL2017_TRIBUTOAOSAMBA_B0.mov, the correct is D:\Especial\M_PROG_ESP_REPRISECARNAVAL2017_TRIBUTOAOSAMBA_B04.mov

« Last Edit: March 06, 2019, 04:59:22 pm by carlosib »