An event was unable to invoke any of the subscribers [私人]

[ 2009-06-01 00:10:49 | 作者: progame ]
文字大小: | |

Automation error -2147220991
An event was unable to invoke any of the subscribers

要重现, 很简单
class1:
Option Explicit

Private WithEvents m_Form As Form

Private m_Self As Class1

Public Sub Bind(f As Form)
Set m_Form = f
Set m_Self = Me
End Sub

Private Sub m_Form_Unload(Cancel As Integer)
Set m_Self = Nothing
Set m_Form = Nothing
End Sub

form:
Dim i As Long
Dim c(1000) As Class1

For i = 0 To 255
Set c(i) = New Class1
c(i).Bind Me
Next i

事件订阅居然还有上限, 真是受不了
评论Feed 评论Feed: /feed.asp?q=comment&id=2823

标签:

您可能感兴趣的文章:


这篇日志没有评论.


发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   (非注册用户不需要输入密码) 注册?
验证码(不区分大小写) * 请输入验证码