View Issue Details

IDProjectCategoryView StatusLast Update
0003237JEDI VCL00 JVCL Componentspublic2005-10-04 14:16
ReporterydmitryaAssigned Toremkobonte 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003237: 0001817: Access violation when using SetBitmapPixelFormat
DescriptionWhen changing BitMapPixelFormat from 32bit to 8bit an access violation occurs in function BitmapToMemoryStream.
This is because variable ImageSize is not adjusted to the new, smaller size of the Bitmap.
Additional InformationTo make here so:
        if SourceBitmapFormat = pfDevice then
          Result.Write(Bits^, ImageSize)
        else
        if SourceBitmapFormat = pf32bit then
          Result.Write(Bits^, ImageSize div 4)
        else
          Result.Write(Bits^, ImageSize div 3);

Or to alter for all bitmap formats
TagsNo tags attached.

Relationships

related to 0001817 resolveduser72 Access violation when using SetBitmapPixelFormat 

Activities

remkobonte

2005-10-04 14:16

developer   ~0008001

This is now fixed in rev. 1.173 of JvJVCLUtils.pas. Thanks for the report.

Issue History

Date Modified Username Field Change
2005-09-27 05:27 ydmitrya New Issue
2005-09-27 14:37 remkobonte Relationship added related to 0001817
2005-10-01 05:49 remkobonte Status new => assigned
2005-10-01 05:49 remkobonte Assigned To => remkobonte
2005-10-04 14:16 remkobonte Status assigned => resolved
2005-10-04 14:16 remkobonte Resolution open => fixed
2005-10-04 14:16 remkobonte Note Added: 0008001