El 17/7/20 a les 10:26, Michael Van Canneyt via lazarus ha escrit:

For the record, I tried to set the codepage of the component to 'utf-8' and it still segfaults, so I don't think it's because of the default codepage.

We'll see. This is the only relevant change in the component, so that is the most likely candidate.

In fact, if you look at the bug report, it's enough to use the old version of Fielddefs.Add (i.e. the one without the encoding) to "fix" the problem, but it's not because of the default (I changed it to 'utf-8', or maybe it's actually 'utf-8' that causes the problem).

What is more puzzling is that it only happens in Lazarus.

For the record, in the simple program I tried with 100000 iterations and it still doesn't segfaults.


Also the fact that some of the TFieldDefs.Add are procedure and some functions doesn't seem right.

They are simply overloaded versions, but all boil down to the same. Some of these exist for Delphi compatibility. I doubt this is the cause.

I'm not saying it's the cause, it just seemed odd.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to