- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I try to use inspector-xe to find mistakes in a quite large Fortran/C software. But I get many memory mistakes which I don't understand. Most of the time : "memory leaks", "Missing allocation" or "Invalid partial memory access". But I am unable to fix the problems.
For instance, in case of "Missing allocation", the explanation says that one tries to deallocate twice a same array or that a pointer is invalid. But in most of my programs, there is no DEALLOCATE statements because ! use the automatic deallocation feature of F95 at the end of procedures.
As demonstration of these inaccurate error messages, look at the following very short program :
[fortran]
PROGRAM main
CHARACTER(255) string
WRITE(string,"(I0)") 1234
WRITE(*,*) string
END PROGRAM
[/fortran]
Inspector-xe indicates here that a memory leak occurs at the line 3. In more complicated programs, in the same situation (writing an integer value into a string), I often gets an "Invalid partial memory access" instead of a "Memory leak".
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
