Lord Satan wrote:
On Tue, 18 Sep 2007 00:16:24 +0200
Marc Weustink <[EMAIL PROTECTED]> wrote:

Nope, but I don't use a debugger in lazarus.
With this result, you might consider doing so, you could have found the cause.

I would if I could. But I launch my progs through 'run_and_wait' (or some such) 
and that does not work with gdb AFAIK. At least it did not work for a very long 
time, does it work now?
   FImage := TheImage as TLazIntfImage;

Ah, so who wrote this line of code? He is responsible for breaking my image 
loading and I reserve a special place for him in my kingdom (eternity is a really 
long time to swim naked in some nice lava flows  >:). (a)

I did. While loading, TLazReaderBMP needs to set properties of TLazIntfImage. Instead of adding checks for every pixel read I forced the TLazIntfImage this way.

The class of TheImage is not a TLazIntfImage ! From your source, its a TFPCustomImage.

TLazReaderBMP only supports TLazIntfImage, so derive your image from TLazIntfImage or don't use TLazReaderBMP.

Deriving from TLazIntfImage works, thanks. You may now officially join
the ranks of evil, unless your are responsible for line 4591 of 
intfgraphics.pas, which would bring you directly back to (a).

I think you would have been less pleased if it worked, but had a noticable perfomance impact.

Marc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to