当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Form with GeckoFX in console application: Child DispatchAsyncMessage error

问题描述:

Launching form with geckoFX from console application.

Thread _T = new Thread(() =>

{

form = new SurferForm();

Application.Run(form);

});

_T.SetApartmentState( ApartmentState.STA);

_T.Start();

while(form== null ||!form.FormReady)

{

Thread.Sleep(200);

}

After launch I need to navigate then close form with browser and continue work in Console application. But if I do close the form with browser I get the following errors http://prntscr.com/bqamyr

Can you suggest smth?

分享给朋友:
您可能感兴趣的文章:
随机阅读: