Share

Report.NET

Tracker: Patches

5 Access Violation in ASP.NET - ID: 1600496
Last Update: Comment added ( otto_mayer )

When Using Report.dll from ASP.NET and loading an image by file name, you
get an access violation error.

The patch is listed below:

The stream has had 'FileAccess.Read' added, since you never need to write
to the File.


//-------------------------------------------------------------------------
---------------------------x

/// <summary>Creates a new image object.</summary>

/// <param name="sFileName">Filename of the Image</param>

/// <param name="rWidth">Width of the image</param>

/// <param name="rHeight">Height of the image</param>

public RepImage(String sFileName, Double rWidth, Double rHeight) {

this.stream = new FileStream(sFileName, FileMode.Open ,FileAccess.Read);

this.rWidth = rWidth;

this.rHeight = rHeight;

}


ozTechnocrat ( oztechnocrat ) - 2006-11-21 15:47

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2006-11-22 07:27
Sender: otto_mayerProject Admin


Thank You!
Otto Mayer


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2006-11-22 07:27 otto_mayer
resolution_id None 2006-11-22 07:27 otto_mayer
close_date - 2006-11-22 07:27 otto_mayer