[Tutor] Memory Management etc

Alan Gauld alan.gauld at freenet.co.uk
Fri May 5 00:48:00 CEST 2006


> I use Activestate Python (2.4.3) in a Windows 32 bit environment.
>
> I have a problem with a large programme that uses a lot of memory
> (numerous large arrays which are dynamically extended).
> I keep getting unpredictable crashes (on a machine with 1/2 GB 
> memory)
> whereas on my laptop (1 GB memory) it seems OK.

How are you running it?
Double clicjk in explorer?
>From within the IDE?
or using

C:\> python foo.py

If the latter try using the -i option (and if you use a lot of 
docstrings -OO)

Otherwise without seeing the code its hard to say, but it doesn't
sound like memory probnlems to me - that should just make it
run slowly in virtual memory.

HTH,

Alan G.




More information about the Tutor mailing list