Hello,
Seems like i'm the first one to post... fine by me.
I'm getting my feet wet with the WPF forms and I got your book to help me through.
Of course i've run into some problems, so i'd like to see if anyone here can provide some insight.
I have some legacy code (dll) written in VB6 that i need to use in order to format data properly that will eventually be displayed in a grid on a WPF form.
The initial "viewable" portions (rows) of the grid are rendered (they are processed, i.e., much massaging going on for each column). Because the special processing of the data for the columns can take time, i want to use a separate background thread to continue rendering the data (not-currently visible), for use by the grid when the user scrolls down. I also need all the data available as quickly as possible in the event that use decides to do actions on that grid... such as sorting on a column, or moving the position of a column around in the grid (more for the former than the latter).
Now it seems i'm running into threading problems. I don't know if it is a problem because of the COM or not. I know the COM is STA, and the WPF forms are all STA, but is that what the problem is? Or is the fact that the grid resides on the first WPF form's thread, and i'm trying to use a 'new' connection on the second background thread to grab my data.
Or can you straighten me out on what is possible to hasten up the data processing of a grid, using threads? I might be totally off base...
I don't see that your book covers background threads, but I've seen them in use else where and trying them out.
Best Regards,
Thierry