comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: "Program Code area full" error message
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: "Program Code area full" error message [message #31250] Wed, 26 June 2002 10:02
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Asti Bhatt (astib@cc.usu.edu) writes:

> Yes, I searched the whole code thoroughly, bus I cannot find any
> "execute" statement. Also I get this error at different types of
> statements as I have written in my previous mail. Those statements are
> not long assignment statements or anything.
> The thing is, I get these errors only when I try to run it from Run
> menu in IDL. If I give .GO in command line, it starts normal
> execution. Has anybody seen this before ?

I recommend completely disabling the Run menu in
the IDL development environment. I used a black
magic marker to rub it out of mine. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: "Program Code area full" error message [message #31252 is a reply to message #31250] Wed, 26 June 2002 09:34 Go to previous message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
Hi ,

Yes, I searched the whole code thoroughly, bus I cannot find any
"execute" statement. Also I get this error at different types of
statements as I have written in my previous mail. Those statements are
not long assignment statements or anything.
The thing is, I get these errors only when I try to run it from Run
menu in IDL. If I give .GO in command line, it starts normal
execution. Has anybody seen this before ?

Thanks,
Asti


Ken Mankoff <mankoff@I.HATE.SPAM.cs.colorado.edu> wrote in message news:<Pine.LNX.4.44.0206251520490.16845-100000@snoe.colorado.edu>...
> This has been discussed in the past.
> Try searching this ng on google for "Program Code Area Full"
>
> Search for the following culprits in your code:
>
> @some_file
> OR
> very long assignment statements (lots of $'s)
> OR
> dummy = execute( some_string )
>
> You say you are not using execute, but you also said that your are
> using someone else's code. Have you thoroughly checked (case
> insensitive grep) that there are no executes hidden somewhere?
>
> -k.
>
Re: "Program Code area full" error message [message #31257 is a reply to message #31252] Wed, 26 June 2002 08:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Asti Bhatt (astib@cc.usu.edu) writes:

> Can anybody tell me, when "Program Code area full" error message
> comes, and what one can do to cure it ? I am NOT using "EXECUTE"
> function in my code. Also I cannot use .SIZE as it has become obsolete
> in IDL 5 onwards. Doesn't this mean that one should never get "Program
> Code area full" or "Program data area full" error messages ?

There is an area of IDL memory set aside to compile IDL
programs. This is the "program code area" (I think). In
any case, you usually see this error message when you are
working with really poorly written code (usually a colleague's). :-)

Actually, you usually see it when you are working with huge
IDL main-level programs, rather than the more normal procedures
and functions. The work-around, of course, is to write procedures
and functions like you are suppose to and get away from
huge journal-type scripts.

I'm not surprised things work better when you compile
the mail-level program and then run it with .GO. The
compiler probably can re-size the program code area
dynamically.

And, by the way, that "RUN" button on the IDLDE probably
confuses more people than helps. I truly don't know
what it can be used for, other than to run IDL procedures
that don't require any arguments. I usually point people
away from it.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: "Program Code area full" error message [message #31267 is a reply to message #31257] Tue, 25 June 2002 14:25 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
This has been discussed in the past.
Try searching this ng on google for "Program Code Area Full"

Search for the following culprits in your code:

@some_file
OR
very long assignment statements (lots of $'s)
OR
dummy = execute( some_string )

You say you are not using execute, but you also said that your are
using someone else's code. Have you thoroughly checked (case
insensitive grep) that there are no executes hidden somewhere?

-k.


On 24 Jun 2002, Asti Bhatt wrote:

> Date: 24 Jun 2002 10:31:55 -0700
> From: Asti Bhatt <astib@cc.usu.edu>
> Newsgroups: comp.lang.idl-pvwave
> Subject: "Program Code area full" error message
>
> Hi everybody,
>
> Can anybody tell me, when "Program Code area full" error message
> comes, and what one can do to cure it ? I am NOT using "EXECUTE"
> function in my code. Also I cannot use .SIZE as it has become obsolete
> in IDL 5 onwards. Doesn't this mean that one should never get "Program
> Code area full" or "Program data area full" error messages ? Please
> help.
>
> Thanks,
> Asti
>
Re: "Program Code area full" error message [message #31268 is a reply to message #31267] Tue, 25 June 2002 13:22 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Sorry, I have no idea. I have never seen this. Looks like David hasn't
either, since he is keeping silence.
Good luck,
Pavel
Re: "Program Code area full" error message [message #31272 is a reply to message #31268] Tue, 25 June 2002 08:51 Go to previous message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
Hi Pavel,

The code is again somebody else's, but I found out something else that
I get number of runtime error messages when I select run from the Run
menu in IDL. But if I give .go command from the command line, it
starts execution normally and only gives reasonable errors. And well,
this is not true for every program. It happens for some codes, it
doesn't for others. This I have encountered before also. Has it
something to do with the code ? I guess not.

I got "Program Code area full" error message in different things like,
print statement , array declaration, value assignment , TVSCL
statement, write statement etc. and other number of errors while
trying to run from Run menu. I do not understand this.

Thanks,
Asti


"Pavel A. Romashkin" <pavel_romashkin@hotmail.com> wrote in message news:<3D179146.4D2D9124@hotmail.com>...
> Could you tell what do you do to get this error? I didn't even know it exists.
>
Re: "Program Code area full" error message [message #31273 is a reply to message #31272] Tue, 25 June 2002 06:34 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On 24 Jun 2002, Asti Bhatt wrote:

> Hi everybody,
>
> Can anybody tell me, when "Program Code area full" error message
> comes, and what one can do to cure it ? I am NOT using "EXECUTE"
> function in my code. Also I cannot use .SIZE as it has become obsolete
> in IDL 5 onwards. Doesn't this mean that one should never get "Program
> Code area full" or "Program data area full" error messages ? Please
> help.


I can get the message by doing the following:

Trying to run a line of code that is really really REALLY long.

i.e.:

put this in a file:
a = [ 1, $
2, $
3, $
4, $
..., $
1e6 ]

then do @file

and you should get the error.

Its almost like having a line limit of 1024 characters or something,
but not quite.

-k.
Re: "Program Code area full" error message [message #31275 is a reply to message #31273] Tue, 25 June 2002 01:12 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Pavel A. Romashkin wrote:

> Could you tell what do you do to get this error? I didn't even know it
> exists.
>
> Asti Bhatt wrote:
>>
>> Hi everybody,
>>
>> Can anybody tell me, when "Program Code area full" error message
>> comes, and what one can do to cure it ? I am NOT using "EXECUTE"
>> function in my code. Also I cannot use .SIZE as it has become obsolete
>> in IDL 5 onwards. Doesn't this mean that one should never get "Program
>> Code area full" or "Program data area full" error messages ? Please
>> help.
>>
>> Thanks,
>> Asti

IIRC you can get this message if a script crashes and you compile (either
directly or indirectly) another procedure without first returning to the
IDL main level with RETALL.


--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
Re: "Program Code area full" error message [message #31280 is a reply to message #31275] Mon, 24 June 2002 14:38 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Could you tell what do you do to get this error? I didn't even know it exists.

Asti Bhatt wrote:
>
> Hi everybody,
>
> Can anybody tell me, when "Program Code area full" error message
> comes, and what one can do to cure it ? I am NOT using "EXECUTE"
> function in my code. Also I cannot use .SIZE as it has become obsolete
> in IDL 5 onwards. Doesn't this mean that one should never get "Program
> Code area full" or "Program data area full" error messages ? Please
> help.
>
> Thanks,
> Asti
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mapping questions
Next Topic: subtle changes in PS output with contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:55:58 PDT 2025

Total time taken to generate the page: 0.00592 seconds