<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto">GDAL Community,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">My application generates a geospatial PDF file from a pre-loaded image source. When generating an image, I keep receiving an exception of:</div>
<div style="RIGHT: auto">"exception class EInvalidOp with message 'Invalid floating point operation'". I am using the respoitory from 11-20-2012. I am using Borland C compiler (now known as Embarcadero Codegear). </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">For Borland, I found a solution at <A href="http://digital.ni.com/public.nsf/allkb/10096EA5DC20FC158625773800628E8A">http://digital.ni.com/public.nsf/allkb/10096EA5DC20FC158625773800628E8A</A> that quited the Invalid floating point operation, but I still get an exception.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Finally, I built a simple command line program in MSVC 2005 to step through GDAL source code to find the exception.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">The exception occurs when using DEFLATE compression option. The output message I get is located in trees.c (frmts\zlib) from gen_bitlen(s,desc) function lines 532-559. Zlib is used in pdfcreatecopy.cpp Lines 3496-3501 and 3548. Line 3548 is where it calls VSIFWriteL().</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">The output string received is:</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">"bit length overflow </div>
<div style="RIGHT: auto">code 0 bits 6->7" </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">or </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">"bit length overflow <VAR id=yui-ie-cursor></VAR></div>
<div style="RIGHT: auto">code 6 bits 6->7</div>
<div style="RIGHT: auto">code 0 bits 6->7"</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">The code and bits are not always the same. For me, it did not matter which file I used, it always gave me an overflow notice.</div>
<div style="RIGHT: auto">Can anyone or has anyone experienced this issue? The file still generates but my application is halted and a message is presented of the exception.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Robert</div></div></body></html>