2010-07-30 57 views
2

我在使用leadtools成像API時在asp.net中出現奇怪的錯誤。這是堆棧跟蹤。Asp.net中的System.AccessViolationException與leadtools成像API

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 
    at SetThreadData(_THREADDATA*) 
    at Leadtools.Codecs.CodecsOptions.Use() 
    at Leadtools.Codecs.RasterCodecs.DoSave(SaveParams saveParams) 
    at Leadtools.Codecs.RasterCodecs.Save(RasterImage image, Stream stream, RasterImageFormat format, Int32 bitsPerPixel) 
    at BarCodeHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext ctxt) 
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

任何幫助將不勝感激。

回答

0

我也有一個tiff文件的問題,但我找到了一個解決方案。當我試圖加載非常高而寬的圖像時,他們必須減少,然後才能正常工作。