Ticket #179 (closed バグ(ケアレスミス): fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by egtra

  • Priority changed from 高-critical to 低-minor

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

comment:2 Changed 4 years ago by dai

  • Status changed from new to closed
  • Resolution set to fixed

[554]にて修正。

Note: See TracTickets for help on using tickets.