On 02/26/2010 10:21 AM, Mattias Gaertner wrote: > > PostMessage is threadsafe, dispatch is not. > Not only thread-save, but thread traversing, which is the proper function of the message delivering library service.
Seemingly the function names are wisely chose (regarding the work of a parcel service that uses a store-and foreword warehouse): Dispatch() performs the local (i.e. within the same thread) delivery to the final recipient. This is to be done by the library itself (the parcel service agent). PostMessage() performs giving the message to the library to have it transport it to the main thread (the remote location)., This is to be done by the user software (the client of the parcel service. -Michael _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel