Solved by Anders_G in post #2 
              
              
                I found the issue. c# has 8 byte aligned data (x64 mode) in arrays while complex<double> requires 16 bytes alignment. Unfortunately there is no way to make c# align to 16 bytes …