View Issue Details

IDProjectCategoryView StatusLast Update
0003655JEDI VCL00 JVCL Componentspublic2006-05-02 02:57
ReporterykamiAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.30 
Summary0003655: JvPaintFX - Access Violation is raised by the stretch method.
DescriptionIf a very small image is given to the TJvPaintFx.Stretch method, the exception(AV or EInvalidGraphicOperation) is generated.

When width and height are images of three or more, it operates normally.

I'm using the latest version of SVN. (with BDS2006Pro)
JvPaintFX.pas 9258

-----
var
  SrcBMP,DestBMP: TBitmap;
begin

  DestBMP := TBitmap.Create;
  DestBMP.Width := 300;
  DestBMP.Height := 300;

  SrcBMP := TBitmap.Create;
  SrcBMP.Width := 1;
  SrcBMP.Height := 1;
 
  // Access Violation
  TJvPaintFX.Stretch(SrcBMP, DestBMP, Lanczos3Filter, 3.0);

  SrcBMP := TBitmap.Create;
  SrcBMP.Width := 3;
  SrcBMP.Height := 1;

  // EInvalidGraphicOperation
  TJvPaintFX.Stretch(SrcBMP, DestBMP, Lanczos3Filter, 3.0);
TagsNo tags attached.

Activities

obones

2006-05-02 02:15

administrator   ~0009228

Seing this with BDS2006 under XP. Working on it.

obones

2006-05-02 02:57

administrator   ~0009230

This is now fixed in SVN.

Issue History

Date Modified Username Field Change
2006-04-22 10:21 ykami New Issue
2006-05-02 02:15 obones Note Added: 0009228
2006-05-02 02:15 obones Status new => confirmed
2006-05-02 02:57 obones Status confirmed => resolved
2006-05-02 02:57 obones Resolution open => fixed
2006-05-02 02:57 obones Assigned To => obones
2006-05-02 02:57 obones Note Added: 0009230