Archived Forum Post

Index of archived forum posts

Question:

AccessViolationException in HttpResponse BodyStr

May 15 '15 at 07:49

I get this exception after try reading che BodyStr in my HttpResponse:

Dim req As New Chilkat.HttpRequest()
Dim http As New Chilkat.Http()
Dim resp As Chilkat.HttpResponse
resp = http.SynchronousRequest(domain, port, ssl, req)

After doing this, "resp" Is Nothing and http.LastErrorHtml is like this:

ChilkatLog:<blockquote>
SynchronousRequest:<blockquote>
DllDate: Mar  6 2015<br>
ChilkatVersion: 9.5.0.48<br>
UnlockPrefix: ********<br>
Username: *****<br>
Architecture: Little Endian; 64-bit<br>
Language: .NET 2.0 / x64<br>
VerboseLogging: 0<br>
domain: ******<br>
port: 443<br>
ssl: 1<br>
httpRequest:<blockquote>
httpVersion: 1.1<br>
verb: POST<br>
path: /my_path<br>
contentType: multipart/form-data<br>
charset: windows-1252<br>
sendCharset: 0<br>
mimeHeader: <br>
requestParams:<blockquote>
requestItem:<blockquote>
name: ****<br>
fileOnDisk: \\my_path\my_file.p7m<br>
numValueBytes: 1293669<br>
</blockquote>
</blockquote>
</blockquote>
readTimeout: 30<br>
connectTimeout: 30<br>
approxRequestSize: 1293806<br>
fullRequest:<blockquote>
a_synchronousRequest:<blockquote>
generateRequest:<blockquote>
httpRequestGenStartLine:<blockquote>
genStartLine:<blockquote>
startLine: POST /***** HTTP/1.1<br>
</blockquote>
</blockquote>
addCookies:<blockquote>
Not auto-adding cookies.<br>
sendCookies: 1<br>
cookieDir: <br>
</blockquote>
genMultipartFormData:<blockquote>
requestParam:<blockquote>
name: *******<br>
filename: \\my_path\my_file.p7m<br>
</blockquote>
</blockquote>
</blockquote>
fullHttpRequest:<blockquote>
domain: *********<br>
port: 443<br>
ssl: 1<br>
openHttpConnection:<blockquote>
Opening connection directly to HTTP server.<br>
httpHostname: *********<br>
httpPort: 443<br>
ssl: 1<br>
HTTPS secure channel established.<br>
</blockquote>
connectTime: Elapsed time: 1124 millisec<br>
sendRequestHeader:<blockquote>
sendHeaderElapsedMs: 0<br>
</blockquote>
sendRequestBody:<blockquote>
genMultipartFormData:<blockquote>
requestParam:<blockquote>
name: *****<br>
filename: \\my_path\my_file.p7m<br>
</blockquote>
</blockquote>
sendBodyElapsedMs: 764<br>
</blockquote>
statusCode: 200<br>
statusText: OK<br>
readResponseBody:<blockquote>
contentLength: 312<br>
</blockquote>
</blockquote>
Exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>

This error occour randomly, not always; the version used is 9.5.0.48, 32 and 64bit


Answer

This is likely solved in v9.5.0.49


Answer

ok, thank you, i'll try it