Using the file open dialogue prevents malloc from accessing memory
-
12 июня 2012 г. 15:09Essentially, under w7, opening a file using the file-open browser (both "XP-style" and "New-style") prevents malloc from working 100%. A malloc call, (via a Fortran "ALLOCATE" call) which has been called repeatedly successfully, eventually fails, but only if the file-open dialogue has been used. It works OK under XP-32, and works OK if I hard code the filename to be read, but fails under W7-64 and W7-32. There is plenty of memory available.
Using ProcessExplorer, I can see that, when it runs successfully, total memory usage (Peak Private Bytes) is at about 980Mb. If I use the file dialogue, the program fails at around 750Mb.
K
Все ответы
-
12 июня 2012 г. 18:10
Your porblem apperas to be program development related. You should find the appropriate forum on the Micrsoft Developer Network @ http://msdn.microsoft.com/en-US/ since this is a users' forum.
The MSDN forums can be found @ http://social.msdn.microsoft.com/Forums/en-US/categories
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
- Предложено в качестве ответа Vincent Wang-MCSCMicrosoft Contingent Staff, Moderator 27 июня 2012 г. 8:04
- Помечено в качестве ответа Leo HuangMicrosoft Contingent Staff, Moderator 27 июня 2012 г. 9:30

