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;
}
Nobody/Anonymous
None
None
Public
|
Date: 2006-11-22 07:27
|
| 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 |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use