I am using the C# ripnetstream example and everything is working correctly except for one issue. My callback for close is never called. I can see that once it is done reading all of the file the sizeinbytes is coming back as 0 but it never calls the close callback which closes the file stream. The result is that the filestream is being left open. I worked around this by closing the stream from within the read callback once I see that there is no more data but I am just wondering why the close callback is not firing. Is there something else that has to be added to the code in the example to to make the close callback fire correctly?
- uberweasel asked 12 years ago
- You must login to post comments