Rank: Member
Groups: Guest
Joined: 8/13/2019(UTC) Posts: 17
Thanks: 1 times
|
When I use PsdReader to read psd fild,I foreach frames and use GetBitmap method .I meet a error: An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module. Attempted to read or write protected memory. This is often an indication that other memory is corrupt. This error stopped my development environment from running.I try to capture this error. But I can not. C# code ' try{}catch(Exception e){} ' doesn't work at all. My code is : Code: var image = new PsdReader(sourceFileName);
for (int i = 1; i < image.Frames.Count; i++)
{
try
{
var layer = image.Frames[i];
if (layer.Type == FrameType.Group)
{
continue;
}
using (var bitmap = layer.GetBitmap())
{
var ms = new MemoryStream();
bitmap.Save(ms, new PngSettings());
var image2 = Image.FromStream(ms);
image2.Save(dataDir + "testimg\\" + i + ".png");
}
}
catch (Exception e)
{
continue;
}
}
Edited by moderator 6 years ago
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
|
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Guest
Joined: 8/13/2019(UTC) Posts: 17
Thanks: 1 times
|
Originally Posted by: Fedor  Please post here or submit a case with the PSD file you would like to process. <THE LINK WAS REMOVED> Edited by moderator 6 years ago
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
We confirm the problem. It occurs in the x64 version only, so you can use the 32-bit assemblies to test the functionality. We will fix it in the future releases. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Guest
Joined: 8/13/2019(UTC) Posts: 17
Thanks: 1 times
|
Originally Posted by: Fedor  We confirm the problem. It occurs in the x64 version only, so you can use the 32-bit assemblies to test the functionality. We will fix it in the future releases. When I used Aurigma.GraphicsMill.Core.x86.dll , it also made a mistake.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Which version do you use? I couldn't reproduce it with the version 10.1.4. Edited by user 6 years ago
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Guest
Joined: 8/13/2019(UTC) Posts: 17
Thanks: 1 times
|
Originally Posted by: Fedor  Whi version do you use? I couldn't reproduce it with the version 10.1.4. I use the 10.1.4 version. And I reproduce it sometime, when I used the console project .If I'm using a web project,it's bound to go wrong.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Okay, thanks for the information. We will fix it in the further releases. |
Best regards, Fedor Skvortsov
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.