Jan 27, 2017 11:46 AM
(This post was last modified: Jan 27, 2017 11:46 AM by Barret.)
For those that are playing around with the serialization features i want to give a small suggestion slash workaround trick,
you might hit your head on the 'Out of memory' exception whilst saving or loading up a big (200mb or bigger) serialized object.
Two things to overcome this:
Option 1. Change the target CPU to 64bits
![[Image: xc2Aqla.png]](https://i.imgur.com/xc2Aqla.png)
Option 2. GC.Collect
Implement a method that would call the 'GC.Collect' after a several 'n' amount of iterations.
I do strongly suggest you don't spam the 'GC.Collect', ive been reading that this operation is heavy on performance.
Alright, take care. :)
you might hit your head on the 'Out of memory' exception whilst saving or loading up a big (200mb or bigger) serialized object.
Two things to overcome this:
Option 1. Change the target CPU to 64bits
![[Image: xc2Aqla.png]](https://i.imgur.com/xc2Aqla.png)
Option 2. GC.Collect
Implement a method that would call the 'GC.Collect' after a several 'n' amount of iterations.
I do strongly suggest you don't spam the 'GC.Collect', ive been reading that this operation is heavy on performance.
Alright, take care. :)


