M
Mythran
Been 11 days since I posted this and 0 replies (although, in OE, it looks
like there was 1 but it's just another post with the same subject as
before):
Part #1:
I have a Thread, MainThread, and a child thread that is started in the
MainThread called ChildThread.
I have a DataSet created in the MainThread in which needs to be passed to
the ChildThread. The ChildThread needs to update the DataSet with new data.
The MainThread, after the ChildThread is finished, needs to continue on it's
merry way updating the DataSet.
Part #2:
I have MainThread and ChildThread ... in ChildThread, I need to create a
DataSet and/or a DataTable. The DataSet then needs to be passed to the
MainThread and then bound to either a DataGrid or Crystal Report...
I have tried both of the above questions but seem to get the same result
every time. Something about can't reference an object created on a
different thread. It was some time ago, and I just remembered about it and
am now curious. I can try setting up a project and duplicating my problems
again if need be...but hopefully there is a short/semi-short method that can
be described using pseudo/semi-pseudo code...
The problem is for C# or VB.Net, either will solve for the other...as it
should be, if any examples/code is given.
Thanks!
Mythran
like there was 1 but it's just another post with the same subject as
before):
Part #1:
I have a Thread, MainThread, and a child thread that is started in the
MainThread called ChildThread.
I have a DataSet created in the MainThread in which needs to be passed to
the ChildThread. The ChildThread needs to update the DataSet with new data.
The MainThread, after the ChildThread is finished, needs to continue on it's
merry way updating the DataSet.
Part #2:
I have MainThread and ChildThread ... in ChildThread, I need to create a
DataSet and/or a DataTable. The DataSet then needs to be passed to the
MainThread and then bound to either a DataGrid or Crystal Report...
I have tried both of the above questions but seem to get the same result
every time. Something about can't reference an object created on a
different thread. It was some time ago, and I just remembered about it and
am now curious. I can try setting up a project and duplicating my problems
again if need be...but hopefully there is a short/semi-short method that can
be described using pseudo/semi-pseudo code...
The problem is for C# or VB.Net, either will solve for the other...as it
should be, if any examples/code is given.
Thanks!
Mythran