Search results for query: *

  1. H

    error "the Size property has an invalid size of 0"

    Problem solved! It turns out the actual problem was that the identity column was a tinyint in SQL Server, but MS Access was showing it as a long. To cut a long story short this caused the SQLCommand output parameter to have a DBType of String rather than Byte, and this then caused the "the...
  2. H

    error "the Size property has an invalid size of 0"

    I have noticed this error appearing a lot on the web so I thought I would share my experience. I am getting it from an SQLCommand and I suspect that it is related to an output parameter. In my case I suspect that it is because the data type for my parameter is not set properly, and the REASON...
  3. H

    Converting VB6 winsock app to .net

    In case anyone has interested I have confirmed that my intended approach was reasonable. Here are some brief comments that might help others: Reading from sockets:- It appears an async read (BeginRead) is the way to do this, although the Microsoft documentation for EndRead has a horribly...
  4. H

    NetworkStream BeginRead and EndRead Confusion

    For anyone that is interested I have found some of the answers to my questions. The 3.5 version of the EndRead documentation contains a user annotation that confirms the code sample is quite wrong. Not only is the code using the local buffer before the buffer contains any data, but it wouldn't...
  5. H

    NetworkStream BeginRead and EndRead Confusion

    Thanks, I understand this but my questions specifically relate to the behaviour of BeginRead when there are multiple calls to BeginRead within the call back function. Here is the Microsoft code sample that I am referring to: Public Shared Sub myReadCallBack(ar As IAsyncResult) Dim...
  6. H

    NetworkStream BeginRead and EndRead Confusion

    hi, I am confused about the operation of the BeginRead and EndRead methods with respect to the way the buffer parameters in the BeginRead method are used. Firstly, there appears to be a serious problem in the code sample for the EndRead method (appears in version 2 and in 3.5 possible all...
  7. H

    Converting VB6 winsock app to .net

    Hi, I am converting an existing TCP server application that uses the winsock control from VB6 to vb.net. The application runs as a service and communicates with approximately 500 clients. Each client is connected for long periods and has occasional conversations with the server. I have been...
Back
Top