I have thread where downloading xml file a this xml file i want to parse in other class. Now I have prepare thread, where I can download it.
In MainForm I’m using WaitForSingleObject, but this function freeze MainFrom, so how can I prevent reezing and wait for value?
Thanks.
I have thread where downloading xml file a this xml file i want to
Share
First, design your thread with events and invoke them using Synchronize.
Create thread in MainForm and assign event handlers to it:
You should not WaitFor* in MainForm. Avoid Windows messages method because your app will loose platform portability, just linked to WinXX compilation.