Sounds like there's something different about the last lines that are causing 
the problem. 

Is it consistently the same data files that produce the effect?

A few other things occur to me, but without seeing your code or example data 
it's a little hard to judge exactly what the problem might be.

If you care to provide some more context and details I'll attempt to diagnose 
further.

Regards,

Stephen Posey
stephenlpo...@earthlink.net 

-----Original Message-----
>From: n...@nrbs.com
>Sent: Jun 4, 2011 4:41 AM
>To: Delphi request <delphi@elists.org>
>Subject: Strange loop behaviour [repeat loop]
>
>Hi
>
>I have a program that reads PCL data and converts to bitmaps.
>I am using a stringlist for this data. I read the strings and convert
>them to binary, loop through the binary lines and draw black pixels
>for 1s and white pixels for 0s.
>
>The program works and is very fast. However, sometimes the LAST
>line is skipped when converting to dots.
>
>I have created a strings object where I write each line of data just
>after convertion to dots. This registers correctly so I know that my
>data is not corrupt when the routine reads the strings.
>
>Typically, there are between 3 and 40 lines for each character
>and each line contains around 36  elements of 1s or 0s.
>
>I have checked all initial values before drawing on the bitmap
>canvas using canvas.fillrect.
>
>The problem is this error only happens sometimes, [but always
>the same files]. I have checked these files using a hex editor and
>the data is definitely present.
>
>Any thoughts would be extremely welcome.
>
>Thanks in advance
>
>Neil
>
>
>
>
>_______________________________________________
>Delphi mailing list
>Delphi@elists.org
>http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to