Hi,
I wonder if any of you have met problems in mixed FORTRAN+C programming. Our SATURN software has always been coded in FORTAN with the Salford compiler and recently I have added a new algorithm implemneted in C. We mainly call C modules from inside SATURN, and occasionally call some FORTRAN functions inside C modules. We also utilise common arrays between FORTRAN and C. We are constrained to use the Salfod C compiler also, in consistent to Salford FORTRAN compiler (both the latest version).
We came across problems in model large transport networks -- the software works fine for small models but it will crash for large models in C's malloc (not enough memory). For example, from Windows Task Manger, it crashed when I used up around 1.35GB of RAM (just beyond my physical memory limit). I thought that the paging would help in virtual memory management and I would certainly be allowed to use more memories than the physical memory limit?
It seemed to me also that sometime when the runs crashed, the window system got stuck and error messages on win***.exe appearing?
I wonder if anyone has experienced the similar things before. Any comeents and advice would most be most appreciated.
Yanling Xiang Atkins UK