Questions tagged [delphi-multithreading]

3 questions
3
votes
1 answer

Delphi multiThreading

I'm new at SO, so forgive me if my question isn't in the right place or been answered before. The questions is about multi-threading with Delphi 10.4. I'm getting Access Violation error on my app, here is a very simple example: type myThread =…
Ray
  • 45
  • 3
2
votes
1 answer

Could UniqueString be a function?

In Delphi there is the procedure UniqueString which forces the parameter passed to it to have a reference count of 1. It is usually done to ensure that so it is safe to pass it to a different thread without messing up the reference counting. (*1) It…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
1
vote
2 answers

Can I call TerminateThread from a VCL thread?

I have found this nice component called TBackgroundWorker. However, people are criticizing it (on SO) because it uses TerminateThread. Here is the "faulty" code: destructor TBackgroundWorker.Destroy; begin if IsWorking then begin …
Gabriel
  • 20,797
  • 27
  • 159
  • 293