The reference count is only updated if the variable "A" was assigned to
another variable. However, if "A" was global, it may still be changed by a
second thread without changing its value.
program SwapTest;
uses
Classes, SysUtils;
type
{ MyThread }
MyThread = class(TThread)
protected
I've added patches to resolve issue #37906, DNS over TCP, to the bug tracker:
https://bugs.freepascal.org/view.php?id=37906
I've broken the changes into three patches:
1. netdb.patch, which updates packages/fcl-net/src/netdb.pp, adding support for
DNS over TCP
2. netdb-example.patch, which add
On 1/29/21 12:37 PM, James Richters wrote:
Any idea what’s causing this crash yet?Is there some way I can at
least detect the error and handle it myself instead of crashing?
I'll take a look and try to reproduce it today or tomorrow. Sorry, I've
been busy lately.
Nikolay
James
**
**
Hi,
Should "A" have a reference count of 1, and it is assigned a new value
on another thread, its reference count will decrease to zero and the
string and its descriptor are both freed. The value of "A" will be set
to nil.
If the reference count is 1, there is no other thread involved.
I