- This topic has 1 reply, 1 voice, and was last updated 3 years, 7 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hello,
SmartEvent Sync uses TThread.Queue to synchonize the main thead but it seems it doesn’t work as expected.
eg
[kbmMW_Event(‘UPDATE_GUI’)], [mweoSync]]
procedure doUpdateGUI(const AJSON: string);
After calling the Event.Notify(‘UPDATE_GUI’) it will cause freezes in the main thread. Using TThread.Synchonize doesn’t have that problem.
So can you add an additional parameter eg mweoSyncQueue for the Queue and let the mweoSync to use TThread.Synchonize ?
Thank you
btw it seems that locking is broken ?
Replacing the events call with TThread.Queue calls solved my freeze problems …
Thank you