D
David Troy
Hi All -- I am new to VB.Net so bear with me.
I have an application where I need to connect to a remote tcp port
synchronously, and then asynchronously wait for a data stream to come
from the connection. As data comes in, I want to parse it and add it
to a DataSet, to be displayed in a Windows Form Datagrid.
To test the idea without fooling with the dataset/datagrid, I wrote my
raw asynchronous response to a TextBox using a Receive/ReceiveCallback
function pair, as per the MS examples. This works fine with no UI
problems.
Now that I have added the DataGrid into the mix, any time I do
anything (click, scroll, select a cell, resize column) to the UI of
the datagrid, it seems like the IO is blocking and the application
freezes until some data gets passed and/or the MS Gods are satisfied.
I'm not sure what's going on. If I turn off the I/O, the datagrid
acts fine. If I don't try to populate the datagrid from my
ReceiveCallback function, but rather with static data on Form_Load,
that works fine too. When I combine the datagrid with the updates
from ReceiveCallback, it gets stuck.
Any help appreciated.
Thanks,
Dave
I have an application where I need to connect to a remote tcp port
synchronously, and then asynchronously wait for a data stream to come
from the connection. As data comes in, I want to parse it and add it
to a DataSet, to be displayed in a Windows Form Datagrid.
To test the idea without fooling with the dataset/datagrid, I wrote my
raw asynchronous response to a TextBox using a Receive/ReceiveCallback
function pair, as per the MS examples. This works fine with no UI
problems.
Now that I have added the DataGrid into the mix, any time I do
anything (click, scroll, select a cell, resize column) to the UI of
the datagrid, it seems like the IO is blocking and the application
freezes until some data gets passed and/or the MS Gods are satisfied.
I'm not sure what's going on. If I turn off the I/O, the datagrid
acts fine. If I don't try to populate the datagrid from my
ReceiveCallback function, but rather with static data on Form_Load,
that works fine too. When I combine the datagrid with the updates
from ReceiveCallback, it gets stuck.
Any help appreciated.
Thanks,
Dave