Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-07

My bug or rtl bug with TThread and TThreadList?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Could someone please look at this small bit of code and tell me I have a bug or if there is something wrong with the RTL?

https://gist.github.com/sysrpl/40505d25fbd38c4404f95225f21fe0a6

SafePostThread is called from the UI thread, but a complete hangs of either thread happens after sometimes one or calls calls.

The most I get this before things go wrong:

Post message

New message

Post message

I am using FPC trunk on Linux.

Mattias Gaertner
to Anthony Walter
Could someone please look at this small bit of code and tell me I have a bug or if there is something wrong with the RTL? https://gist.github.com/sysrpl/40505d25fbd38c4404f95225f21fe0a6

Strange code. PostMessage is already threadsafe. Maybe you found a bug in the LCL and are trying to workaround?

Show quoted text 13 lines
SafePostThread is called from the UI thread, but a complete hangs of either thread happens after sometimes one or calls calls. The most I get this before things go wrong: Post message New message Post message I am using FPC trunk on Linux.

Which Widgetset?

Mattias