Archived Forum Post

Index of archived forum posts

Question:

AccessViolationException in HttpResponse BodyStr

Apr 13 '13 at 17:39

Hi,

On some machines (especially VPS) chilkat HttpResponse throws System.AccessViolationException

my code:

var body = resp.BodyStr;

and sometimes I get:

Unhandled exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
in ClsHttpResponse.get_BodyStr(ClsHttpResponse* , XString* )
in Chilkat.HttpResponse.get_BodyStr()
in  MyApp.WebEngine.Open(String url)
in  CallSite.Target(Closure , CallSite , CodeContext , Object )
in  System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

Is there possibiity to fix it?

I'm using 9.4.0.0


Accepted Answer

Here is the new 32-bit pre-release build of v9.4.1

http://www.chilkatsoft.com/preRelease/ChilkatDotNet4.zip


Answer

Please let me know what .NET Framework you are using, and if it's 32-bit or 64-bit, and I will provide a new build for testing.


Answer

Application is build on .NET 4.0 - Platform target Active (x86) - but I'm testing it on 64 bit systems