Delegate and Threading


Author
Message
Scott Hershberger
Scott Hershberger
StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)
Group: Forum Members
Posts: 10, Visits: 26
I need to pass a delegate with a parameter to the thread manager, however, the threadmanager does not take a pure delegate and requires MicroFour.StrataFrame.Threading.ThreadManager.Delegate_ExecutionMethod which does not allow parameters. Is there anyway to get around this?





Public Delegate Sub GetData(ByVal passedInt As Integer)

Dim myMethod As MicroFour.StrataFrame.Threading.ThreadManager.Delegate_ExecutionMethod

myMethod = AddressOf GetDataSub



This obviously does not work since :



Method 'Public Sub GetDataSub(passedInt As Integer)' does not have the same signature as delegate 'Delegate Sub Delegate_ExecutionMethod()'

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search