- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Guys, I think it is a newbie question, but I can't find it anywhere.
I notice that the function WRRRN() uses a lot of RAM. I want to know how to avoid or dealloc the memory (I don't even know if it is possible).
Here is my code:
do i = 1, 10000
do j = 1, 10000
call wrrrn ('x', 3, 1, x, 3, 0)
end do
end do
The simple fact of showing the values of the matrix x, just increases a lot the used memory. I try to clear the strings from the terminal using this:
call system ('cls') but it doesn't work. I'm using the old microsoft developer studio fortran powerstation 95. Could it be a compiler problem?
Thanks in advice
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is using the ram, your application or the terminal window buffering the output? What OS are you running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I think is not the terminal buffering because the memory usage increases disproportionately. Printing a 3x3 matrix increases 1MB for each iteration. I think the problem is with the wrrrn() itself. I'm using windows 7 ultimate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
WRRRN is an IMSL routine, though it's written in Fortran. There's nothing you can do about any memory being allocated here - it isn't screen buffer memory. Of course, you're using a 16+ year old product that is long, long unsupported.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page