Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 获得;客户端未能请求;使用NDde读取Firefox URL时出现异常_C#_Url_Firefox - Fatal编程技术网

C# 获得;客户端未能请求;使用NDde读取Firefox URL时出现异常

C# 获得;客户端未能请求;使用NDde读取Firefox URL时出现异常,c#,url,firefox,C#,Url,Firefox,我得到以下例外 NDde.DdeException:客户端请求失败 “Firefox | WWW_GetWindowInfo!URL”——>NDde.Foundation.DdemlException: 客户端请求“Firefox | WWW_GetWindowInfo!URL”失败 我使用的代码是 using NDde.Client; . . . DdeClient dde = new DdeClient("Firefox", "WWW_GetWindowInfo");

我得到以下例外

NDde.DdeException:客户端请求失败 “Firefox | WWW_GetWindowInfo!URL”——>NDde.Foundation.DdemlException: 客户端请求“Firefox | WWW_GetWindowInfo!URL”失败

我使用的代码是

using NDde.Client;
.
.
.


 DdeClient dde = new DdeClient("Firefox", "WWW_GetWindowInfo");
                dde.Connect();
                retVal = dde.Request("URL", int.MaxValue);
                dde.Disconnect();
                MatchCollection match = Regex.Matches(retVal, "\"([^\"]*)\"");
                if (match.Count > 0)
                {
                    retVal = match[0].Value.Replace(@"""", string.Empty);
                }
若我从两个不同的插件调用上面的代码,我就会遇到问题。如果我禁用一个插件,它就可以正常工作


我需要帮助

Firefox不允许来自同一客户端的多个同时连接。

Firefox不允许来自同一客户端的多个同时连接以防止服务攻击。感谢您的回答。你是对的,我们决定编写通用代码来获取URL信息。