IDL memory allocation [message #4734] |
Sat, 15 July 1995 00:00 |
mallozzi
Messages: 60 Registered: August 1994
|
Member |
|
|
Hi all,
I have two questions about how IDL handles memory:
1. Does IDL4.0 remove the restriction of le 64 arguments for procedures?
I was trying to convert some FORTRAN code to IDL, and some of the
subroutines have more than 64 arguments. It is really inconvenient
to have to pack all or some of the arguments into a structure (for
example) to cut back the number of arguments (and from recent posts,
I see that sructures can't have more than 125 or so tags?).
2. I have a pretty complicated widget code, and yesterday when I tried to
add another widget, I got an access violation on my system (DEC Alpha),
which kicked me out of IDL back to the system prompt. I figured out
the exact line in the code where it crashed: it was in the procedure
that builds the new widget. The line was just something like
x = LONARR(20)
Is it possible that the heap memory corrupted the stack, or what is
going on. The error message is useless (it's a system error, not IDL).
HELP, /MEM showed that I was using about 3MB.
Thanks. Bob
|
|
|