This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Please somebody finds out my mistakes. Thank you so much.
-henhen(哼哼, 找工ing ^_^);
2003-12-15
{754}
(#1516295@0)
-
Your problem is coming here tooooo of-ten.:rolia
Where can I go?
go to rolia
never exit
exit
-workopolis(﹡ 枫树下のCOYOTE ﹡);
2003-12-15
{54}
(#1516423@0)
-
:D:Dno problem.
-henhen(哼哼, 找工ing ^_^);
2003-12-15
{11}
(#1516433@0)
-
wrong wayIf I am not misunderstanding you, I think you are doing it in the wrong way. .Net provides standard asynchrous call to method of web service. I can submit your a zip file containing web service and client, but unfortunatelly, I do not know your email address.
-aimaomao(爱毛毛);
2003-12-15
{259}
(#1516765@0)
-
你就在这说说好了,我在MSDN和其它论坛search了半天, 发现用callback的例子大同小异,所以不知道怎么回事, 不用callback的asynchronous调用完全成功。谢谢!顺便顶给xmlhttprequest(DataSet lover...)看。
-henhen(哼哼, 找工ing ^_^);
2003-12-15
(#1516776@0)
-
up!
-henhen(哼哼, 找工ing ^_^);
2003-12-15
(#1516807@0)
-
就是我说的原因啊:textBox1.Text = webAsyc.EndGetFile(ar); 不能在 callback 里面直接这么操作,要 merge 回 ui thread
-xmlhttprequest(DataSet lover...);
2003-12-15
(#1516847@0)
-
程序还没走到这一步
-aimaomao(爱毛毛);
2003-12-15
(#1516859@0)
-
try this:this.BeginInvoke(new MethodInvoker(this.test)); // use this line in callback, 'this' is win form...
private void test()
{
this.label1.Text = "abc";
}
-xmlhttprequest(DataSet lover...);
2003-12-15
{159}
(#1516863@0)
-
Thanks.
-henhen(哼哼, 找工ing ^_^);
2003-12-15
(#1516881@0)
-
I tried in a console application, same problem. But, let me try. Thank you.what is the straight way to merge 回 ui thread ?
-henhen(哼哼, 找工ing ^_^);
2003-12-15
{49}
(#1516867@0)
-
WindowsApplication1.SycAsyc.SycAsyc webAsyc=new WindowsApplication1.SycAsyc.SycAsyc();问题可能出在这一句,
WindowsApplication1.SycAsyc.SycAsyc webAsyc=new WindowsApplication1.SycAsyc.SycAsyc();
你debug 一下, 看webAsync的内容,是否created an instance.
-aimaomao(爱毛毛);
2003-12-15
{169}
(#1516849@0)
-
that's the web service. nio problem here. It works.
-henhen(哼哼, 找工ing ^_^);
2003-12-15
(#1516870@0)
-
add a Thread.Sleep(100) in your while loop and have a try.
-guestagain(guest again);
2003-12-15
(#1516977@0)
-
good. I'm waiting for you. Thanks. :-)
-henhen(哼哼, 找工ing ^_^);
2003-12-16
(#1517128@0)
-
The problem is thread.Thread.Sleep(100) doesn't work.
If my asynchronous call doesn't use callback, I tried several ways, it works. if I use callback, the code I posted here, the Form no response anymore although the process is still running.
-henhen(哼哼, 找工ing ^_^);
2003-12-16
{224}
(#1517137@0)
-
Tip: threads fired from WinForm should run on the control's thread....
-lingsui(零碎);
2003-12-16
(#1517153@0)
-
Thanks so much. I succeeded just now. So exhausted.
-henhen(哼哼, 找工ing ^_^);
2003-12-16
(#1517169@0)