1
Vote

OutOfMemoryException

description

Hello,
 
I was just trying this tool to create big printable job of 300 dpi. I was able to create 42 in x 31,5 in job. But It failed when bigger dimension was given and stack trace are as follows:
 
C:\Program Files\Paint.NET>PDNBulkUpdaterCmd.exe c:\source /o:c:\destination /dp
u:300 /u:in /pcnt:700
Paint .NET Bulk Image Processor
Version 1.0.0.0
Copyright c 2010 Keith Newton. All rights reserved.
 
Output Settings
Percent: 700
Dpu: 300
Dpu Unit: Inch
Algorithm: Bicubic
Rename To: Output Filec:\destination Directory:
 
Error: Processing image 'c:\source\P1020801_2.JPG' to 'c:\destination\P1020801_2
.JPG' failed!
System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1,160
,712,000
at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFil
l) in D:\src\pdn\pdn_35x\src\SystemLayer\Memory.cs:line 146
at PaintDotNet.MemoryBlock.Allocate(Int64 bytes, MemoryBlockAllocFlags flags,
Boolean allowRetry) in D:\src\pdn\pdn_35x\src\Core\MemoryBlock.cs:line 511
at PaintDotNet.MemoryBlock.Allocate(Int64 bytes, MemoryBlockAllocFlags flags,
Boolean allowRetry) in D:\src\pdn\pdn_35x\src\Core\MemoryBlock.cs:line 507
at PaintDotNet.MemoryBlock..ctor(Int64 bytes, MemoryBlockAllocFlags flags) in
D:\src\pdn\pdn_35x\src\Core\MemoryBlock.cs:line 318
at PaintDotNet.Surface..ctor(Int32 width, Int32 height, SurfaceCreationFlags
surfaceCreationFlags) in D:\src\pdn\pdn_35x\src\Core\Surface.cs:line 250
at PaintDotNet.Surface..ctor(Int32 width, Int32 height) in D:\src\pdn\pdn_35x
\src\Core\Surface.cs:line 208
at PDNBulkUpdater.OutputFile.Process(UpdateContext ctx, Dictionary2 saveToke
ns, IProcessingEventListener events, Int32 index)
at PDNBulkUpdater.Util.ProcessImages(UpdateContext ctx, Dictionary
2 saveToke
ns, IProcessingEventListener events)
 
Processing 1 images complete!

comments