Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Tiff To PDF Conversion Error - failed to allocate 1102080 of pixel memory

Last post 28 Aug 2008, 10:39 AM by MelroyBritto. 2 replies.
Sort Posts: Previous Next
  •  27 Aug 2008, 3:49 PM 15365

    Tiff To PDF Conversion Error - failed to allocate 1102080 of pixel memory

    Getting Following Errror while Converting TIFF to PDF conversion.

    failed to allocate 1102080 of pixel memory

       at Atalasoft.Imaging.Memory.ResidentPixelMemory.AllocateMemory(Int32 numBytes, Boolean zeroMemory)

       at Atalasoft.Imaging.Codec.TiffDecoder.a(IntPtr A_0, Int32 A_1, ImageInfo A_2, Palette A_3, ProgressEventHandler A_4)

       at Atalasoft.Imaging.Codec.TiffDecoder.a(IntPtr A_0, Int32 A_1, ProgressEventHandler A_2)

       at Atalasoft.Imaging.Codec.TiffDecoder.a(Stream A_0, Int32 A_1, ProgressEventHandler A_2)

       at Atalasoft.Imaging.Codec.TiffDecoder.Read(Stream stream, Int32 frameIndex, ProgressEventHandler progress)

       at Atalasoft.Imaging.AtalaImage.a(Stream A_0, Int32 A_1, ImageDecoder A_2, ProgressEventHandler A_3)

       at Atalasoft.Imaging.AtalaImage..ctor(Stream stream, Int32 frameIndex, ProgressEventHandler progress)

       at Atalasoft.Imaging.FileSystemImageSource.LowLevelAcquire(Int32 index)

       at Atalasoft.Imaging.FileSystemImageSource.LowLevelAcquireNextImage()

       at Atalasoft.Imaging.ImageSource.AcquireNext()

    ...Any Help is Highly Appreciated.

    Thanks in Advance.

  •  28 Aug 2008, 7:42 AM 15373 in reply to 15365

    Re: Tiff To PDF Conversion Error - failed to allocate 1102080 of pixel memory

    You may want to open a support case so that you can post code and send images. 

    http://www.atalasoft.com/support  (Click Add Support Case)

     Here are some things to look at though:

    1. Make sure to call Dispose() on any AtalaImage that you don't need anymore.  The best way to do this is with a using statement (to make sure that it's called even if there's an exception)

    2. If you are converting a lot of pages, you want to make sure that only one page is in memory at a given time.  This KB article explains how to do that:

     http://www.atalasoft.com/kb/article.aspx?id=10125

    3. The 1,102,080 that it's trying to allocate must be a contiguous block -- so having a lot of memory might not help if the memory is being fragmented.

    If you need more help on this, please open a support case or call us 866-569-0129 if you have phone support.

     

     

  •  28 Aug 2008, 10:39 AM 15383 in reply to 15373

    Re: Tiff To PDF Conversion Error - failed to allocate 1102080 of pixel memory

    Hi Lou,

    Thanks for your help. I would modify the code as mentioned. Thanks for correction/solution.

    Thanks,

    Shankul/Melroy.

View as RSS news feed in XML