Vote UpVote

Delphi: when calling TThread.Synchronize, ensure the synchronised method handles exceptions

The Wiert Corner – Since about a decade, TThread has a few overloaded [WayBack] Synchronize methods which all allow some specified synchronised method to run in the context of the main thread: [WayBack] TThread.Synchronize Method (TThreadMethod) [WayBack] TThread.Synchronize Method (TThreadProcedure) [WayBack] TThread.Synchronize Method (TThread, TThreadMethod) [WayBack] TThread.Synchronize Method (TThread, TThreadProcedure) Any exceptions raised in that methods are caught using [WayBack] System.AcquireExceptionObject and re-raised in the calling thread. If that happens, you loose a piece of the stack ...
Favorite? Off-Topic? jpluimers @ 2019-09-17 07:04


Visits: 145
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)