You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By view point of parallelism, sometimes we access .png files by multiple threads simultaneously. Current pngcs implementation prevents things from working properly because OpenFileForReading method in FileHelper performs Read/Write (calling FileStream(String, FileMode) constructor without passing third argument; FileAccess, result in R/W access) and perform locks on files.
So, I propose applying the following patch on FileHelper.cs
isx = new FileStream(file, FileMode.Open);
isx = new FileStream(file, FileMode.Open, FileAccess.Read);
From [email protected] on November 09, 2013 07:39:10
By view point of parallelism, sometimes we access .png files by multiple threads simultaneously. Current pngcs implementation prevents things from working properly because OpenFileForReading method in FileHelper performs Read/Write (calling FileStream(String, FileMode) constructor without passing third argument; FileAccess, result in R/W access) and perform locks on files.
So, I propose applying the following patch on FileHelper.cs
Original issue: http://code.google.com/p/pngcs/issues/detail?id=9
The text was updated successfully, but these errors were encountered: