Im calling a fortran dll from my csharp application. This works fine on most computers, however on several computers appears the following problem:
When one of the fortran subrutines get called the application is stuck, it enters the subrutine and doesnt come back. you can see the application running in the task manager with 50% CPU use...
The tricky part is that the problem is not the called subrutine but another one that is not got called (when the problem happens). If I remove the code of the other subrutine the application runs fine.
I also found out that array declarations in the other subrutine are cousing that problem.I have several big arrays declared inside that subrutine and also passed inside as parameters.
When I removed all the code that's using those arrays it also solved the problem.
I've tried setting calling conventions on both sides to stdcall or Cdecl, but it had no influence.
I'he also tried to set the /heap-arrays option, no success.
Do you have any other suggestions ?
P.S. All the computers configuration are the same : Windows7 SP1 , 32bit.
My application is compiled for 32bit , using Visual2008.