I am trying to create 100-300 HTTP objects / requests at the same time using MSXML2.serverXMLHTTP.6.0or WinHttp.WinHttpRequest.5.1.
These queries are created in separate threads using a test application. Everything works fine, up to 90 creating objects / queries launched simultaneously.
When more than 100 are created / called at the same time, the application crashes with an exception in KERNELBASE.dll.
the code:
CreateObject("MSXML2.serverXMLHTTP.6.0")
CreateObject("WinHttp.WinHttpRequest.5.1")
set obj = CreateObject("MSXML2.serverXMLHTTP.6.0")
'set obj = CreateObject("WinHttp.WinHttpRequest.5.1")
obj.open "GET", "https://httpbin.org/get", true
'https://resttesttest.com/
obj.send ' Mostly crashes here.
obj.WaitForResponse
result = obj.responseTEXT
set obj = Nothing
Event Viewer Report:
Invalid module name: KERNELBASE.dll, version: 6.1.7601.18015, timestamp: 0x50b83c8a Exception code: 0xc00000fd Error in the module path: C: \ Windows \ syswow64 \ KERNELBASE.dll
Async "true" "false".
- , ?