Recent

Author Topic: TFPGMap failed to read data from register, internal dereference error  (Read 816 times)

cpicanco

  • Hero Member
  • *****
  • Posts: 674
  • Behavioral Scientist and Programmer
    • Portfolio
Hi everyone

I have a working example here (parameters.zip), with no errors adding new KeyData items in the map/dictionary.

But somehow, when descending from more complex classes it fails. Take a look at the screenshot. What might be causing this error?
 
Be mindful and excellent with each other.
https://github.com/cpicanco/

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • FPC developer.
Re: TFPGMap failed to read data from register, internal dereference error
« Reply #1 on: November 19, 2023, 03:11:02 pm »
Afaik several bugs were fixed in fgl in the last few years. i.e. it might not be you, it might be fgl.


cpicanco

  • Hero Member
  • *****
  • Posts: 674
  • Behavioral Scientist and Programmer
    • Portfolio
Re: TFPGMap failed to read data from register, internal dereference error
« Reply #2 on: November 19, 2023, 03:19:28 pm »
I was assuming that the problem was being caused by inheritance complexity, but I really don't known. I will try to make some tests.
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 674
  • Behavioral Scientist and Programmer
    • Portfolio
Re: TFPGMap failed to read data from register, internal dereference error
« Reply #3 on: November 19, 2023, 03:50:33 pm »
Afaik several bugs were fixed in fgl in the last few years. i.e. it might not be you, it might be fgl.

Thank you very much marcov. I tested with TDictionary from Generics.Collention and it worked like a charm. (I will do some more tests here though.). 
Be mindful and excellent with each other.
https://github.com/cpicanco/

 

TinyPortal © 2005-2018