BeingRead() / EndRead() doubt
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have an app that does async. reads from a networkStrem.When i do BeginRead() i pass an object(which is kept in a collection) that includes info about the connection and the networkstream.When the application enters the callback method the object has changed(the network stream already contains the info?) or does it change only after the EndRead() when i read data from the networkStream? Is the EndRead method Thread-safe?I ask this because if it isn't thread-safe then the collection is changing without any sync. method and i use synclock whenever i'm accessing the collection... Thanks in advance.