Ticket #179 (closed バグ(ケアレスミス): fixed)
ActiveBasic.Windows.UIでEventHandlerを使用するとコンパイルエラーになる
| Reported by: | egtra | Owned by: | dai |
|---|---|---|---|
| Priority: | 低-minor | Milestone: | ablib_α1 |
| Component: | ablib | Version: | |
| Keywords: | デリゲート | Cc: |
Description
ablibから問題の発生する最小限のコードを抜き出すと次のようになります。
Namespace ActiveBasic Namespace Windows Namespace UI TypeDef EventArgs = System.EventArgs TypeDef EventHandler = System.EventHandler Class Control Private finalDestroy As EventHandler Sub RegisterUnassociateHWnd(owner As Control) If IsNothing(owner) = False Then Dim e = New EventHandler(AddressOf(UnassociateHWndOnEvent)) If IsNothing(finalDestroy) Then owner.finalDestroy = e Else owner.finalDestroy += e End If End If End Sub Sub UnassociateHWndOnEvent(sender As Object, e As EventArgs) End Sub End Class End Namespace 'UI End Namespace 'Widnows End Namespace 'ActiveBasic
EventArgs?/EventHandlerを使用するイベントが全く実装できないため、優先度高にしました。
Change History
Note: See
TracTickets for help on using
tickets.

[551]よりEventHandlerという名前をやめて問題回避することにしたので、早急な対処は不要になりました。そのため優先度を落とします。