Hello All,
I fixed a critical issue in Dicom.Native where the JPEG coded was facing a severe crash when it is used to Encode many DICOM images inside a long running process (PACS service)
The issue was in the PinnedByteArray was not Disposed after Encoding the images.
Disposing the PinnedByteArray after encoding process solved the memory related exception which cause corruption of the process memory address space.
It was not wise to depend on GC to dispose this class through finalizers since it uses GCHandle class which may result in the process goes out of Handles in certain situations.
I pushed this change in my Repository but I am not sure where to do pull request?
Hesham