Welcome to LEAD Technologies Support Forum Login | Register | Faq  

  LEAD Icon   LEAD Technologies Support Forum
  Resource to find answers and post technical questions about LEADTOOLS products.
Right LEADTOOLS Banner

System.AccessViolationException during file save

Started by Megadino at 04-21-2011 11:19. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  04-21-2011, 11:19
Megadino is not online. Last active: 4/21/2011 3:44:22 PM Megadino

Not Ranked
Joined on 04-21-2011
Posts 1
System.AccessViolationException during file save
Reply Quote
I receive this error whilst trying to write multi-frame TIFF files to disk.
The app is written in C#, uses .NET4, compiled to target x86 platform.
Version of Leadtools is 17
files are:

exception sometimes is happened during saving process of large RasterImage object with 96 frames
when it is happened I usually receive two records in Windows Event log, they are:
Event Type:    Error
Event Source:    .NET Runtime
Event Category:    None
Event ID:    1026
Date:        21/04/2011
Time:        11:30:32 AM
User:        N/A
Computer:    MATROX-5MCUWVP1
Application: CellcuraWorkstation.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at .L_MemoryCopy(Void*, Void*, UInt32)
   at .LT_Namespace.L_CopyMemory(Byte*, Byte*, UInt32)
   at .L_CopyBitmap(_BITMAPHANDLE*, _BITMAPHANDLE*, UInt32)
   at .L_CopyBitmap(_BITMAPHANDLE*, _BITMAPHANDLE*, UInt32)
   at .L_SaveFile(Char*, _BITMAPHANDLE*, Int32, Int32, Int32, UInt32, Int32 (_BITMAPHANDLE*, Byte*, UInt32, UInt32, Void*), Void*, _SAVEFILEOPTION*)
   at Leadtools.Codecs.RasterCodecs.SaveOnePage(Int32, Leadtools.Codecs.SaveParams)
   at Leadtools.Codecs.RasterCodecs.DoSave(Leadtools.Codecs.SaveParams)
   at Leadtools.Codecs.RasterCodecs.Save(Leadtools.RasterImage, System.IO.Stream, Leadtools.RasterImageFormat, Int32, Int32, Int32, Int32, Leadtools.Codecs.CodecsSavePageMode)
   at IHMedDrawTools.MultiImageObject.SaveMultiPage(System.String, Int32)
   at IHMedControls.SavingManager.Monitoring()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Event Type:    Error
Event Source:    .NET Runtime 4.0 Error Reporting
Event Category:    None
Event ID:    1000
Date:        21/04/2011
Time:        11:12:51 AM
User:        N/A
Computer:    MATROX-5MCUWVP1
Faulting application cellcuraworkstation.exe, version, stamp 4db037ed, faulting module msvcr90.dll, version 9.0.21022.8, stamp 47313dce, debug? 0, fault address 0x0002463e.

Could you help me to solve this issue?
There are some related topics:

the same issue was detected in version 16, but still remains.
What can I do to fix this?

  04-22-2011, 15:55
Walter is not online. Last active: 8/26/2016 9:44:38 AM Walter

Top 10 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 581
Re: System.AccessViolationException during file save
Reply Quote
Hello Anton,

Your DLLs are not the latest available. I'd suggest downloading the latest main installer to update your existing installation. If the problem still exists with the latest dlls, please send a small sample project that isolates this issue along with a sample image to support@leadtools.com. Please also include the following information:
1. The company you work for
2. The LEADTOOLS serial number(s) you own (if you are evaluating, just say so)
3. The name(s) of the developer(s) using the serial number
4. A link to this forum post
Technical Support
LEAD Technologi... » Imaging » Image Processin... » System.AccessViolationException during file save

Powered by Community Server, by Telligent Systems