Free cookie consent management tool by TermsFeed Policy Generator

Opened 13 years ago

Closed 13 years ago

#1560 closed defect (done)

Concurrent Serialization of Bitmaps fails

Reported by: epitzer Owned by: epitzer
Priority: medium Milestone: HeuristicLab 3.3.5
Component: Persistence Version: 3.3.5
Keywords: Cc:

Description

System.InvalidOperationException: Object is currently in use elsewhere.
   at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
   at System.Drawing.Image.Save(Stream stream, ImageFormat format)
   at HeuristicLab.Persistence.Default.Xml.Primitive.Bitmap2XmlSerializer.Format(Bitmap o) in C:\Users\P40031\workspace\hl3.trunk\sources\HeuristicLab.Persistence\3.3\Default\Xml\Primitive\System.Drawing\Bitmap2XmlSerializer.cs:line 31
   at HeuristicLab.Persistence.Interfaces.PrimitiveSerializerBase`2.HeuristicLab.Persistence.Interfaces.IPrimitiveSerializer.Format(Object o) in C:\Users\P40031\workspace\hl3.trunk\sources\HeuristicLab.Persistence\3.3\Core\PrimitiveSerializerBase.cs:line 73
   at HeuristicLab.Persistence.Core.Serializer.Serialize(DataMemberAccessor accessor, Object obj) in C:\Users\P40031\workspace\hl3.trunk\sources\HeuristicLab.Persistence\3.3\Core\Serializer.cs:line 233Type was "System.Drawing.Bitmap, System.Drawing"
object graph location: ROOT

Change History (5)

comment:1 Changed 13 years ago by epitzer

  • Owner changed from swagner to epitzer
  • Status changed from new to accepted

comment:2 Changed 13 years ago by epitzer

Lock bitmap while saving and remove configuration info when other exceptions occur (r6446)

comment:3 Changed 13 years ago by epitzer

  • Owner changed from epitzer to cneumuel
  • Status changed from accepted to reviewing

comment:4 Changed 13 years ago by cneumuel

  • Component changed from ### Undefined ### to Persistence
  • Owner changed from cneumuel to epitzer
  • Status changed from reviewing to readytorelease

works for me!

comment:5 Changed 13 years ago by swagner

  • Resolution set to done
  • Status changed from readytorelease to closed
  • Version changed from 3.3.4 to 3.3.5
Note: See TracTickets for help on using tickets.