Page 1 of 1

AV when assigning big images to walls

Posted: Wed Jan 21, 2009 9:44 am
by 10551336
Hi,

when I assign a large image (1280 x 1024) to a wall I get an AV. The debugger indicates that the problem is in TeCanvas, Line 3495.

Steps to reproduce:

Put a Tchart on a Form and a TImage. Load an image into the Timage and assign it to one of the walls:

Chart1.BottomWall.Picture.Assign(Image1.Picture);

Btw IIRC the same happens for the ImageTool.

TChart Source version 8.04, Delphi 2009 with all updates

Best regards,

Markus

Posted: Wed Jan 21, 2009 10:08 am
by narcis
Hi Markus,

Thanks for reporting. I have been able to reproduce the problem here and added it (TV52013764) to the defect list to be fixed. It seems it's a D2009 specific bug. It works in Delphi 7, for example.

Posted: Wed Jan 21, 2009 10:27 am
by 10551336
Wow, I am impressed - that was a quick answer. Thanks

Markus

Posted: Wed Jan 21, 2009 12:00 pm
by narcis
Hi Markus,

I found that assigning the image directly to the wall using the chart editor works fine too.

Posted: Wed Jan 21, 2009 12:09 pm
by 10551336
Hi Narcis,

how do you mean assigning it via the chart editor?
Do you mean assigning an image to the fill pattern?
If that is the case, this is not the same as assigning to the picture property.

Btw, I think that the Picture property of the walls never made it into the chart editor.

Markus

Posted: Wed Jan 21, 2009 12:13 pm
by narcis
Hi Markus,

Yes, exactly, assigning the image via the pattern editor.

Posted: Wed Jan 21, 2009 12:25 pm
by 10551336
As I said in my last post, the pattern image is not the same as the picture for a wall. I think you should also add this new picture property to the chart editor, for the sake of completness.

markus

Posted: Wed Jan 21, 2009 12:27 pm
by narcis
Hi Markus,

Ok, I've added this to the list too.