![]()
Delphi xe10 thread safe queue how to#It is clear that I don't really know how to use it & I haven't been able to find examples of its use.ĭigging further, I realised that my problem is the classic Producer-Consumer pattern. Delphi xe10 thread safe queue code#So I replaced Synchronize with Queue in the worker thread code & no data was passed to the main form. I read about the Queue method and the fact that it doesn't pause the worker thread while waiting for the main thread to finish executing the procedure. I believe it has to do with synchronization issues with the parser not getting the right data it needs. The problem is sometimes I get an EJSONParser exception inside the Main thread as shown in the screenshot. I made a worker thread that retrieves the data from the server using Indy10 and then passes on the data in JSON format to the main form using the Synchronize method. Delphi xe10 thread safe queue update#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |