开发者

System.AccessViolationException

开发者 https://www.devze.com 2023-02-07 11:55 出处:网络
InnerException: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other me开发者_C百科mory is corrupt. at System.Runtime.InteropServices.Cu

InnerException: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other me开发者_C百科mory is corrupt. at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext()

I am getting this exception few times a day in our website. The page that create PDF file from the uploaded image files result in above excption. Do you have any idea what could be causing it.


Where are the images "uploaded" to? Are you saving them to disk prior to attempting PDF, or is it done in stream? Is there any chance you are grabbing the image prior to it saving to disk? These are the things I would examine to get to the root cause.

Do you get a stack trace from the error? If so, you can isolate the line of code it is actually failing on.

If the error merely annoys you, wrap in a try ... catch and do nothing. Only kidding, btw.

0

精彩评论

暂无评论...
验证码 换一张
取 消