Skip to content

MS Access VBA #33

Answered by wqweto
Docent24 asked this question in Q&A
Mar 25, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Yes, I actually found a problem with Winsock replacement control: If you do not call GetData (or PeekData) in DataArrival event the underlying socket input buffer became full and it stops sending FD_READ notifications as the TCP connection became stalled so the Winsock control connection looks stalled too.

I've fixed this issue in 1.0.5 release so that the reproduction code below works ok now

'--- Form1
Option Explicit

Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileW" (ByVal lpFileName As Long) As Long

Private Sub Form_Click()
    ctxWinsock1…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Docent24
Comment options

@wqweto
Comment options

Comment options

You must be logged in to vote
1 reply
@Docent24
Comment options

Answer selected by Docent24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants