Page 1 of 1

Exception Invalid Imagelist

Posted: Wed Jun 11, 2008 12:06 pm
by cychia
About the error that I have reported to you in email regarding the use of ImageList with 0 width in order to hide the bullet.

I have made a test, when it is calling PaintTo(BufferCanvas, r2, False, False, False, False); it will cause exception but this exception will only be happened when running the application in Windows Vista.

Is there any workaround to deal with this problem? Thanks.

Posted: Wed Jun 11, 2008 6:13 pm
by Sergey Tkachenko
Sorry, but it looks like this problem is not related to TRichView. This is the problem with TImageList. Your image list has 0x0 size, probably Vista does not accept it.

There is one thing to try.
Open RVItem.pas, find the call of ImageList_DrawEx and put it in try...except:

Code: Select all

...
try
  ImageList_DrawEx(...);
except
end;
...