I use C #. I create a separate stream and initialize a COM object in it to load data from the network. I can not understand why the form hangs at the time of loading data. I tried to do infinite loops like while and for in the stream, everything goes well with them.
private void button1_Click(object sender, EventArgs e) { Thread thread = new Thread(LoadTP); thread.IsBackground = true; thread.Start(); } public void LoadTP() { MC.Class Test = new MC.Class(); // MC.Class это DLL (COM) написанная на VB5 Test.LoadData(); }
LoadTP
only a bigSleep
, is it working normally? - VladD