T
Trapulo
I've a strange error with CF 2.0: when I make a raiseEvent, I get a
notsuportedexception execption, and I cannot figure why this.
This is my code:
Public Event DataReceived(ByVal sender As Object, ByVal e As
DataReceivedEventArgs)
Protected Sub OnDataReceived(ByVal sender As Object, ByVal e As
DataReceivedEventArgs)
Try
RaiseEvent DataReceived(sender, e) '<----- here I've the error
Catch ex As Exception
Debug.WriteLine("errore sollevando l'evento: " & ex.Message)
End Try
End Sub
Public Class DataReceivedEventArgs
Inherits EventArgs
Public Sub New(ByVal data As String)
Me._data = data
End Sub
Private _data As String
Public ReadOnly Property Data() As String
Get
Return _data
End Get
End Property
The function is called by an other function that is a callback of a
networkstream.beginRead process.
Any idea?
Thanks
notsuportedexception execption, and I cannot figure why this.
This is my code:
Public Event DataReceived(ByVal sender As Object, ByVal e As
DataReceivedEventArgs)
Protected Sub OnDataReceived(ByVal sender As Object, ByVal e As
DataReceivedEventArgs)
Try
RaiseEvent DataReceived(sender, e) '<----- here I've the error
Catch ex As Exception
Debug.WriteLine("errore sollevando l'evento: " & ex.Message)
End Try
End Sub
Public Class DataReceivedEventArgs
Inherits EventArgs
Public Sub New(ByVal data As String)
Me._data = data
End Sub
Private _data As String
Public ReadOnly Property Data() As String
Get
Return _data
End Get
End Property
The function is called by an other function that is a callback of a
networkstream.beginRead process.
Any idea?
Thanks