Exception Invalid Imagelist

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

Exception Invalid Imagelist

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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;
...
Post Reply