Hi,
I'm calling a data-server via a third party dll in .NET to retrieve custom data. The call to the dll fires out ok, and the implemented call-back functions are called (asynchronously) ok. The problem is that when the data set appears in the call-back function (as a varient array) it cannot be "seen" by the code that initiated the server call i.e. even with a Public Shared variable the value is lost.
I've done a bit of research on threading and delegates, but even my delegate variable cannot be seen by the main thread.
I suppose my question is, am I barking up the wrong tree with delegates and threading to solve this??
I'm calling a data-server via a third party dll in .NET to retrieve custom data. The call to the dll fires out ok, and the implemented call-back functions are called (asynchronously) ok. The problem is that when the data set appears in the call-back function (as a varient array) it cannot be "seen" by the code that initiated the server call i.e. even with a Public Shared variable the value is lost.
I've done a bit of research on threading and delegates, but even my delegate variable cannot be seen by the main thread.
I suppose my question is, am I barking up the wrong tree with delegates and threading to solve this??