为什么Call不从Quality Center 10 API(应用程序挂起)返回. [英] Why Call not return from Quality Center 10 API , Application Hang..

查看:92
本文介绍了为什么Call不从Quality Center 10 API(应用程序挂起)返回.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HP Quality Center10.我通过API连接和断开QC,并且还在这之间做一些工作.我调用了QC 10的其他API.我经常使用Windows Service调用该API(间隔为1分钟).但是过了一段时间,注销API将不会返回,并且我的应用程序已挂起.如果有人对此有任何想法,请回答我的问题.

在此先谢谢您..

I am Using HP Quality Center 10. I Connect and Disconnect the QC through API and also do some my job in between. I call different API of QC 10.I use Windows Service to call the API frequently(In 1 min gap). But after Some time the Logout API will not return and my application is hang. If any one do have any idea regarding this please reply my Question.

Thanks in advance..

推荐答案

您有没有问过API的制造商?我敢打赌他们会给你答案.

我的猜测是,您不是从单独的线程中调用此api(或者如果不是,则该API并非线程安全的),并且当您再次触发该API调用时,仍然很忙,因此会导致您的服务崩溃.尝试在api调用周围放置try/catch块,看看它能告诉您什么.
Did you, by any chance, ask the manufacturer of the API? I bet they''ll give you an answer.

My guess is that you''re not calling this api from a separate thread (or if you are, the API isn''t thread-safe), and when you come around again to fire off the API call, it''s still busy, and therefore will crash your service. Try putting a try/catch block around the api call and see wht it tells you.


这篇关于为什么Call不从Quality Center 10 API(应用程序挂起)返回.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆