错误:委托必须有一个目标 [英] Error: delegate must have one target

查看:138
本文介绍了错误:委托必须有一个目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过GSM调制解调器接收消息,但是通过例外接收消息

代表必须在此行上有一个目标



i'm receiving Messages through the GSM Modem but on receiving it through an exception
"delegate must have one target"
on this line:

try
               {
                   

               DecodedShortMessage[] Msgs = comm.ReadMessages(PhoneMessageStatus.ReceivedUnread, PhoneStorageType.Sim);
}
 catch (Exception ex) { }

推荐答案

相关线程与变通方法:



HTTP://social.msdn .microsoft.com /论坛/ vstudio / EN-US / 6c63bb79-8eba-4a89-840d-790996eec866 /主叫多方法 - 使用 - 代表 - 的BeginInvoke-错误的委托方 - 必须具备的,只有一目标?forum = csharpgeneral [ ^ ]
Related thread with workarounds:

http://social.msdn.microsoft.com/Forums/vstudio/en-US/6c63bb79-8eba-4a89-840d-790996eec866/calling-multiple-methods-using-delegate-begininvoke-error-the-delegate-must-have-only-one-target?forum=csharpgeneral[^]


这篇关于错误:委托必须有一个目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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