Jennifer,
You need to assign a value to your _syncObject variable. The value needs to
be of a type that supports ISynchronizeInvoke.
The only types that support ISynchronizeInvoke within the Framework inherit
from System.Windows.Forms.Control.
Normally I use the instance of my MainForm.
FWIW: You are free to implement ISynchronizeInvoke in your own classes,
however implementing ISynchronizeInvoke is a very advanced topic.
Hope this helps
Jay
"jherl" <je***********@aol-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
I am getting an "Object reference not set to an instance of an object"
when I try to execute the Invoke method. I have it set up as follows:
---
Private _syncObject As System.ComponentModel.ISynchronizeInvoke
.
.
.
Dim args(0) As Object
Dim d As New RaiseReceiveEvent(AddressOf OnReceive)
.
.
args(0) = "Test Message"
.
.
_syncObject.Invoke (d, args)
---
Any help would be "GREATLY" appreciated.
Thanks-
Jennifer