[fpc-pascal] Function reference doesn't capture in thread

2022-09-16 Thread Hairy Pixels via fpc-pascal
Can anyone explain why this program doesn’t capture the state of the local variable “I” and execute in order? It will return something like this: Invoked: 3 id: 0001029D41C0 Invoked: 0 id: 0001029D42C0 Invoked: 0 id: 0001029D44C0 Invoked: 0 id: 0001029D43C0 It works if you call S

Re: [fpc-pascal] Internal error 2019022201 from function reference

2022-09-16 Thread Hairy Pixels via fpc-pascal
> On Sep 11, 2022, at 4:22 PM, Sven Barth wrote: > > Why do you think it's not known if there is an internal error? Internal > errors are precisely there to cover cases that should not be taken, but are > then triggered by some code path that was not thought about. > As a general rule: alway