I ran into a (probably) memory issue in an OpenMP parallelized code section. In the code I have an array of objects of class1 where each instance of class1 contains an array of objects of class2. They are declared as arrays with constant size in the declaration of the respective classes and not via new/delete. After increasing the size of one of the arrays, the program delivered wrong results. After decreasing the size, the program worked fine again. A second solution is to switch of the OpenMP support in the compiler options. Just commenting the OpenMP pragma is not sufficient. I tried kmp_set_stacksize_s(4000) and kmp_set_stacksize_s(16000) but now a different parallelized section even crashes.
Win XP x64
Visual Studio 2008
Intel Compiler 11.0.066 (32bit!!)
On a different computer the same code compiles and runs perfectly.
Win XP 32bit
Visual Studio 2003
Intel Compiler 10.1.xyz
Has anybody an idea how to solve this issue?? Reducing the array size is only a temporal solution for me.
Thanks and best regards,