Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Memory access error

  • Marbry Hardin
    Marbry Hardin

    Have a C# service that does image conversion using FreeImage.

    It utilizes the .Net wrapper and calls the Save() method from within a parallel foreach. I kept getting an invalid memory access violation from the freeimage.dll on save when max parallelism was near or over the number of physical processors.

    I disabled hyperthreading (quad core xeon, 64 bit Win7) and these errors have completely gone away. Even using settings that I was able to consistently generate an error with before.

    Has anyone else run into this?

    Last edit: Marbry Hardin 2014-02-06