Re: [fpc-pascal] Question about System.Move()

2021-01-29 Thread Derek Edson via fpc-pascal
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

[fpc-pascal] Patches for Issue #37906 - DNS over TCP

2021-01-29 Thread Noel Duffy via fpc-pascal
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

Re: [fpc-pascal] PTCGraph Causing 217

2021-01-29 Thread Nikolay Nikolov via fpc-pascal
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 ** **

Re: [fpc-pascal] Question about System.Move()

2021-01-29 Thread Benito van der Zander via fpc-pascal
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